unify Semi UI workspace command hierarchy

This commit is contained in:
lingniu
2026-07-18 03:36:18 +08:00
parent e39140c408
commit 3cebfe1982
12 changed files with 372 additions and 79 deletions

View File

@@ -1877,6 +1877,7 @@
}
}
@media (max-width: 680px) {
.v2-assigned-vins {
max-height: min(360px, 42dvh);
@@ -6521,7 +6522,7 @@
padding: 12px 14px 14px;
}
.v2-user-command-bar {
.v2-workspace-command-bar {
display: flex;
width: 100%;
max-width: 1480px;
@@ -6538,35 +6539,37 @@
box-shadow: 0 6px 20px rgba(31, 50, 76, .035);
}
.v2-user-command-copy {
.v2-workspace-command-copy {
display: grid;
min-width: 0;
gap: 2px;
}
.v2-user-command-copy strong {
.v2-workspace-command-copy .semi-typography {
color: #263b53;
font-size: 14px;
font-weight: 700;
letter-spacing: -.012em;
}
.v2-user-command-copy span {
.v2-workspace-command-copy > .semi-typography:last-child {
overflow: hidden;
color: #7d8b9d;
font-size: 10px;
font-weight: 400;
letter-spacing: 0;
text-overflow: ellipsis;
white-space: nowrap;
}
.v2-user-command-meta {
.v2-workspace-command-actions {
display: flex;
min-width: 0;
align-items: center;
gap: 10px;
}
.v2-user-command-meta > .semi-tag {
.v2-workspace-command-actions > .semi-tag {
min-height: 24px;
flex: 0 0 auto;
border-radius: 999px;
@@ -6575,7 +6578,13 @@
font-weight: 650;
}
.v2-user-command-meta > .semi-typography {
.v2-workspace-command-meta {
display: flex;
min-width: 0;
align-items: center;
}
.v2-workspace-command-meta > .semi-typography {
overflow: hidden;
max-width: 220px;
font-size: 10px;
@@ -6583,7 +6592,7 @@
white-space: nowrap;
}
.v2-user-command-meta > .semi-button {
.v2-workspace-command-actions > .semi-button {
min-height: 36px;
flex: 0 0 auto;
border-radius: 8px;
@@ -6903,7 +6912,7 @@
}
@media (max-width: 980px) and (min-width: 681px) {
.v2-user-command-meta > .semi-typography {
.v2-workspace-command-meta > .semi-typography {
display: none;
}
@@ -6929,35 +6938,50 @@
padding: 7px 7px 10px;
}
.v2-user-command-bar {
.v2-workspace-command-bar {
min-height: 48px;
gap: 8px;
border-radius: 9px;
padding: 5px 6px 5px 10px;
}
.v2-user-command-copy strong {
.v2-workspace-command-copy > .semi-typography:first-child {
font-size: 12px;
}
.v2-user-command-copy span,
.v2-user-command-meta > .semi-tag,
.v2-user-command-meta > .semi-typography {
.v2-workspace-command-copy > .semi-typography:last-child,
.v2-workspace-command-actions > .semi-tag,
.v2-workspace-command-meta {
display: none;
}
.v2-user-command-meta > .semi-button {
.v2-workspace-command-actions {
gap: 5px;
}
.v2-workspace-command-actions > .semi-button {
min-height: 38px;
padding-inline: 9px;
font-size: 10px;
}
.v2-user-command-bar .v2-workspace-command-actions > .semi-button,
.v2-access-command-bar .v2-workspace-command-actions > .semi-button,
.v2-ops-command-bar .v2-workspace-command-actions > .semi-button {
width: 40px;
min-width: 40px;
min-height: 40px;
padding: 0;
}
.v2-user-command-meta > .semi-button .semi-button-content {
.v2-user-command-bar .v2-workspace-command-actions > .semi-button .semi-button-content,
.v2-access-command-bar .v2-workspace-command-actions > .semi-button .semi-button-content,
.v2-ops-command-bar .v2-workspace-command-actions > .semi-button .semi-button-content {
font-size: 0;
}
.v2-user-command-meta > .semi-button .semi-icon {
.v2-user-command-bar .v2-workspace-command-actions > .semi-button .semi-icon,
.v2-access-command-bar .v2-workspace-command-actions > .semi-button .semi-icon,
.v2-ops-command-bar .v2-workspace-command-actions > .semi-button .semi-icon {
margin-right: 0;
font-size: 16px;
}
@@ -7158,3 +7182,233 @@
grid-template-columns: minmax(0, 1fr);
}
}
/* Final cascade layer for the shared command hierarchy. */
.v2-workspace-command-bar {
box-sizing: border-box;
height: 52px;
min-height: 52px;
padding-block: 5px;
}
.v2-workspace-command-copy {
gap: 0;
}
.v2-workspace-command-copy > .semi-typography:first-child {
margin: 0;
line-height: 18px;
}
.v2-workspace-command-copy > .semi-typography:last-child {
margin: 0;
line-height: 14px;
}
.v2-vehicle-query-panel > .semi-card-body > .v2-workspace-filter-heading {
display: none;
}
.v2-vehicle-query-panel .v2-vehicle-search-form {
display: flex;
height: 54px;
min-height: 54px;
align-items: center;
gap: 8px;
border-top: 0;
padding: 6px 8px;
}
.v2-vehicle-query-panel .v2-vehicle-search-form > .v2-vehicle-search-picker {
width: auto;
min-height: 40px;
flex: 1 1 0;
}
.v2-vehicle-query-panel .v2-vehicle-search-form > .semi-button {
height: 40px;
min-height: 40px;
flex: 0 0 auto;
}
.v2-ops-tabs {
box-sizing: border-box;
height: 44px;
min-height: 44px;
flex: 0 0 44px;
overflow: hidden;
padding: 3px;
}
.v2-ops-tabs > .semi-button {
height: 36px;
min-height: 36px;
}
@media (max-width: 680px) {
.v2-workspace-command-bar {
height: 48px;
min-height: 48px;
}
.v2-vehicle-query-panel > .semi-card-body > .v2-workspace-filter-heading {
display: flex;
}
.v2-vehicle-query-panel .v2-vehicle-search-form {
height: auto;
min-height: 0;
padding: 8px;
}
}
.v2-vehicle-search-page > .v2-workspace-command-bar {
width: min(1280px, 100%);
}
.v2-access-page-v3 {
width: 100%;
height: 100%;
min-height: 0;
gap: 8px;
overflow: hidden;
padding: 12px 14px 14px;
}
.v2-access-page-v3 > .v2-workspace-command-bar,
.v2-ops-command-bar {
max-width: none;
}
.v2-access-filter-card-v3 > .semi-card-body {
display: block;
}
.v2-access-filter-card-v3 > .semi-card-body > .v2-workspace-filter-heading {
display: none;
}
.v2-access-filter-v3 {
min-height: 54px;
grid-template-columns: minmax(220px, 1.35fr) repeat(3, minmax(128px, .7fr)) auto auto;
align-items: center;
gap: 8px;
padding: 7px 9px;
}
.v2-access-filter-v3 > label {
display: contents;
}
.v2-access-filter-v3 > label > span {
display: none;
}
.v2-access-filter-v3 label > :is(.semi-input-wrapper, .semi-select),
.v2-access-filter-v3 > .semi-button {
width: 100%;
height: 38px;
min-height: 38px;
align-self: center;
border-radius: 8px;
}
.v2-access-kpis-card-v3.semi-card,
.v2-access-kpis-v3 {
min-height: 60px;
}
.v2-access-kpis-v3 .v2-metric-action {
min-height: 58px;
padding: 8px 14px;
}
.v2-access-kpis-v3 strong {
font-size: 20px;
}
.v2-access-workspace-v3 {
min-height: 0;
flex: 1 1 0;
}
.v2-access-table-v3.semi-card,
.v2-access-table-v3 > .semi-card-body {
height: 100%;
min-height: 0;
}
.v2-ops-page {
width: 100%;
height: 100%;
min-height: 0;
gap: 8px;
overflow: hidden;
padding: 12px 14px 14px;
}
.v2-ops-workspace {
min-height: 0;
flex: 1 1 0;
overflow: auto;
overscroll-behavior: contain;
scrollbar-gutter: stable;
}
@media (max-width: 1120px) and (min-width: 681px) {
.v2-access-filter-v3 {
grid-template-columns: minmax(200px, 1fr) repeat(3, minmax(110px, .65fr)) auto auto;
}
.v2-access-command-bar .v2-workspace-command-meta {
display: none;
}
}
@media (max-width: 680px) {
.v2-access-page-v3 {
height: auto;
min-height: 100%;
gap: 7px;
overflow: auto;
padding: 7px 7px 14px;
}
.v2-access-filter-card-v3 > .semi-card-body > .v2-workspace-filter-heading {
display: flex;
}
.v2-access-filter-v3 {
min-height: 0;
grid-template-columns: minmax(0, 1fr);
gap: 8px;
padding: 8px;
}
.v2-access-filter-v3 > label {
display: grid;
}
.v2-access-filter-v3 > label > span {
display: block;
}
.v2-access-workspace-v3 {
min-height: 540px;
flex: none;
}
.v2-ops-page {
height: auto;
min-height: 100%;
gap: 7px;
overflow: auto;
padding: 7px 7px 16px;
}
.v2-ops-workspace {
min-height: 0;
flex: none;
overflow: visible;
}
}