feat(web): unify Semi UI workspace states

This commit is contained in:
lingniu
2026-07-18 00:59:11 +08:00
parent 159c80b0ae
commit 1cd92715a5
13 changed files with 639 additions and 46 deletions

View File

@@ -10087,12 +10087,14 @@ button, a { -webkit-tap-highlight-color: transparent; }
.v2-vehicle-search-page {
align-content: start;
place-items: start center;
gap: 14px;
overflow: auto;
background: var(--v2-bg);
padding: clamp(32px, 6vh, 64px) var(--v2-page-gutter) 32px;
padding: clamp(24px, 4vh, 40px) var(--v2-page-gutter) 32px;
}
.v2-vehicle-search-card.semi-card {
width: min(900px, 100%);
.v2-vehicle-search-card.semi-card,
.v2-vehicle-recent-card.semi-card {
width: min(1040px, 100%);
border-color: var(--v2-surface-border);
border-radius: 14px;
box-shadow: var(--v2-surface-shadow);
@@ -10201,6 +10203,105 @@ button, a { -webkit-tap-highlight-color: transparent; }
width: max-content;
margin: 16px 0 0 auto;
}
.v2-vehicle-recent-card > .semi-card-body {
overflow: hidden;
border-radius: inherit;
}
.v2-vehicle-recent-grid {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 8px;
padding: 12px;
}
.v2-vehicle-recent-item.semi-button {
display: block;
width: 100%;
min-width: 0;
height: auto;
min-height: 82px;
border: 1px solid #e3eaf2;
border-radius: 10px;
background: #fbfcfe;
padding: 11px 34px 10px 12px;
color: #26374d;
text-align: left;
transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.v2-vehicle-recent-item.semi-button:hover,
.v2-vehicle-recent-item.semi-button:focus-visible {
border-color: #b8d1fb;
background: #f5f9ff;
box-shadow: 0 6px 18px rgba(33, 102, 217, .08);
transform: translateY(-1px);
}
.v2-vehicle-recent-item .semi-button-content {
position: relative;
display: grid;
min-width: 0;
grid-template-columns: minmax(0, 1fr) auto;
grid-template-rows: auto auto;
align-items: center;
gap: 8px;
}
.v2-vehicle-recent-identity {
display: grid;
min-width: 0;
gap: 3px;
}
.v2-vehicle-recent-identity strong {
overflow: hidden;
color: #182438;
font-size: 14px;
font-weight: 720;
text-overflow: ellipsis;
white-space: nowrap;
}
.v2-vehicle-recent-identity small,
.v2-vehicle-recent-status small {
overflow: hidden;
color: #8391a4;
font-size: 9px;
font-weight: 500;
text-overflow: ellipsis;
white-space: nowrap;
}
.v2-vehicle-recent-status {
display: grid;
justify-items: end;
gap: 4px;
}
.v2-vehicle-recent-protocols {
display: flex;
min-width: 0;
gap: 4px;
}
.v2-vehicle-recent-protocols .semi-tag,
.v2-vehicle-recent-status .semi-tag {
margin: 0;
}
.v2-vehicle-recent-arrow {
position: absolute;
top: 50%;
right: -24px;
color: #9aabba;
transform: translateY(-50%);
}
.v2-vehicle-recent-state {
display: flex;
min-height: 128px;
align-items: center;
justify-content: center;
gap: 9px;
color: #718096;
font-size: 12px;
}
.v2-vehicle-recent-state.is-error {
flex-direction: column;
color: var(--semi-color-danger);
}
.v2-vehicle-recent-empty.semi-empty {
padding: 22px 16px 28px;
}
@media (max-width: 680px) {
.v2-vehicle-search-page {
@@ -10212,7 +10313,8 @@ button, a { -webkit-tap-highlight-color: transparent; }
width: auto;
flex: 1 1 100%;
}
.v2-vehicle-search-card.semi-card {
.v2-vehicle-search-card.semi-card,
.v2-vehicle-recent-card.semi-card {
width: 100%;
min-width: 0;
border-radius: 12px;
@@ -10290,6 +10392,34 @@ button, a { -webkit-tap-highlight-color: transparent; }
justify-content: center;
margin-top: 12px;
}
.v2-vehicle-recent-grid {
grid-template-columns: 1fr;
gap: 0;
padding: 4px 10px 8px;
}
.v2-vehicle-recent-item.semi-button {
min-height: 62px;
border: 0;
border-bottom: 1px solid #edf1f6;
border-radius: 0;
background: transparent;
padding: 8px 28px 8px 2px;
}
.v2-vehicle-recent-item.semi-button:last-child {
border-bottom: 0;
}
.v2-vehicle-recent-item.semi-button:hover,
.v2-vehicle-recent-item.semi-button:focus-visible {
background: #f5f9ff;
box-shadow: none;
transform: none;
}
.v2-vehicle-recent-identity strong {
font-size: 13px;
}
.v2-vehicle-recent-arrow {
right: -20px;
}
}
/* Semi UI history hierarchy: keep evidence rows primary and aggregate trends explicitly on demand. */