refine Semi UI operations workspace

This commit is contained in:
lingniu
2026-07-18 07:32:32 +08:00
parent 0c6a3e4ef1
commit ffb1283807
3 changed files with 253 additions and 15 deletions

View File

@@ -9993,3 +9993,218 @@
padding-left: 8px;
}
}
/*
* Semi UI operations final convergence.
* Keep one compact navigation rail, give every workspace a single scroll owner,
* and never allow the health grid to shrink evidence below its intrinsic size.
*/
.v2-ops-navigation {
display: flex;
width: 100%;
height: 52px;
min-height: 52px;
flex: 0 0 52px;
align-items: center;
justify-content: space-between;
gap: 14px;
overflow: hidden;
border: 1px solid #dce4ed;
border-radius: 12px;
background: #fff;
padding: 5px 10px 5px 5px;
box-shadow: 0 5px 18px rgba(31, 53, 80, .045);
}
.v2-ops-navigation .v2-ops-tabs.v2-segmented-tabs {
width: min(700px, calc(100% - 220px));
height: 40px;
min-height: 40px;
flex: 0 1 700px;
grid-template-columns: repeat(3, minmax(132px, 1fr));
gap: 3px;
overflow: visible;
border: 0;
border-radius: 9px;
background: #f2f5f9;
padding: 3px;
box-shadow: none;
}
.v2-ops-navigation .v2-ops-tabs.v2-segmented-tabs > .semi-button {
height: 34px;
min-height: 34px;
border-radius: 7px;
font-size: 13px;
}
.v2-ops-navigation-meta {
display: flex;
min-width: 0;
align-items: center;
justify-content: flex-end;
gap: 9px;
white-space: nowrap;
}
.v2-ops-navigation-meta > .semi-typography {
overflow: hidden;
color: #7d899a;
font-size: 12px;
text-overflow: ellipsis;
}
.v2-ops-navigation-meta > .semi-tag {
min-height: 26px;
flex: 0 0 auto;
border-radius: 6px;
font-size: 11px;
}
.v2-ops-workspace.is-health {
align-content: start;
grid-auto-rows: max-content;
}
.v2-ops-workspace.is-health > .v2-ops-overview.semi-card {
height: auto;
min-height: 0;
}
.v2-ops-overview > .semi-card-body {
height: auto;
}
.v2-ops-metric {
min-height: 100px;
padding: 14px 16px 13px;
}
.v2-ops-metric::after {
right: 16px;
left: 16px;
}
.v2-ops-metric strong {
margin: 8px 0 7px;
font-size: 22px;
}
.v2-ops-workspace.is-diagnostic {
display: flex;
min-height: 0;
flex-direction: column;
align-items: stretch;
overflow: auto;
}
.v2-ops-workspace.is-diagnostic > .v2-source-filter-panel {
flex: 0 0 auto;
}
.v2-ops-workspace.is-diagnostic > .v2-source-diagnostic {
min-height: 300px;
flex: 1 0 auto;
}
.v2-source-filter-panel .v2-source-search {
min-height: 60px;
align-items: center;
}
.v2-source-filter-panel .v2-source-search > .semi-input-wrapper,
.v2-source-filter-panel .v2-source-search > .semi-button {
height: 38px;
min-height: 38px;
}
.v2-ops-source-card.semi-card {
content-visibility: auto;
contain-intrinsic-size: auto 390px;
}
.v2-ops-workspace,
.v2-reconcile-table-wrap.is-scroll-region {
scrollbar-color: #aebdce transparent;
scrollbar-width: thin;
}
.v2-ops-workspace:focus-visible {
outline: 2px solid rgba(18, 104, 243, .34);
outline-offset: -2px;
}
.v2-ops-workspace::-webkit-scrollbar,
.v2-reconcile-table-wrap.is-scroll-region::-webkit-scrollbar {
width: 10px;
height: 10px;
}
.v2-ops-workspace::-webkit-scrollbar-thumb,
.v2-reconcile-table-wrap.is-scroll-region::-webkit-scrollbar-thumb {
border: 2px solid transparent;
border-radius: 999px;
background: #aebdce;
background-clip: padding-box;
}
@media (max-width: 900px) and (min-width: 681px) {
.v2-ops-navigation .v2-ops-tabs.v2-segmented-tabs {
width: min(620px, calc(100% - 150px));
flex-basis: 620px;
}
.v2-ops-navigation-meta > .semi-typography {
display: none;
}
}
@media (max-width: 680px) {
.v2-ops-navigation {
position: sticky;
z-index: 8;
top: 0;
height: 50px;
min-height: 50px;
flex-basis: 50px;
border-radius: 11px;
padding: 4px;
}
.v2-ops-navigation .v2-ops-tabs.v2-segmented-tabs {
position: static;
width: 100%;
height: 42px;
min-height: 42px;
flex: 1 1 auto;
grid-template-columns: repeat(3, minmax(92px, 1fr));
overflow-x: auto;
}
.v2-ops-navigation .v2-ops-tabs.v2-segmented-tabs > .semi-button {
min-width: 92px;
min-height: 36px;
padding-inline: 7px;
font-size: 11px;
}
.v2-ops-navigation-meta {
display: none;
}
.v2-ops-workspace.is-diagnostic {
overflow: visible;
}
.v2-ops-workspace.is-diagnostic > .v2-source-diagnostic {
min-height: 260px;
}
.v2-source-filter-panel .v2-source-search {
align-items: stretch;
}
.v2-ops-metric {
min-height: 94px;
}
}