refine Semi UI access workspace

This commit is contained in:
lingniu
2026-07-18 10:17:05 +08:00
parent c1c35f8962
commit 41b5c41998
4 changed files with 287 additions and 113 deletions

View File

@@ -8300,12 +8300,39 @@
width: 100%;
height: 100%;
min-height: 0;
gap: 8px;
gap: 10px;
overflow: hidden;
padding: 12px 14px 14px;
padding: 14px 16px 16px;
}
.v2-access-discovery-shell {
display: grid;
flex: 0 0 auto;
overflow: visible;
gap: 0;
border: 1px solid #dce4ee;
border-radius: 14px;
background: #fff;
box-shadow: 0 9px 28px rgba(31, 53, 80, .055);
}
.v2-access-discovery-shell > .v2-workspace-command-bar {
width: 100%;
min-height: 50px;
border: 0;
border-bottom: 1px solid #e6ecf3;
border-radius: 14px 14px 0 0;
box-shadow: none;
}
.v2-access-discovery-shell > .v2-access-filter-card-v3.semi-card {
width: 100%;
overflow: visible;
border: 0;
border-radius: 0 0 14px 14px;
box-shadow: none;
}
.v2-access-page-v3 > .v2-workspace-command-bar,
.v2-ops-command-bar {
max-width: none;
}
@@ -8362,20 +8389,6 @@
box-shadow: 0 7px 16px rgba(18, 104, 243, .15);
}
.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;
@@ -8387,6 +8400,96 @@
min-height: 0;
}
.v2-access-status-tabs {
display: grid;
min-height: 48px;
flex: 0 0 auto;
grid-template-columns: repeat(4, minmax(0, 1fr));
overflow: hidden;
border-bottom: 1px solid #e4eaf2;
background: #fbfcfe;
}
.v2-access-status-tabs .v2-metric-action.semi-button {
position: relative;
width: 100%;
min-width: 0;
height: 48px;
border: 0;
border-radius: 0;
background: transparent;
padding: 0 14px;
color: #66778d;
}
.v2-access-status-tabs .v2-metric-action + .v2-metric-action::before {
position: absolute;
inset: 10px auto 10px 0;
width: 1px;
background: #e1e7ef;
content: '';
}
.v2-access-status-tabs .v2-metric-action:hover {
background: #f4f8fe;
}
.v2-access-status-tabs .v2-metric-action.is-active {
z-index: 1;
background: #eef5ff;
color: var(--v2-blue);
box-shadow: inset 0 -3px var(--v2-blue);
}
.v2-access-status-tabs .semi-button-content,
.v2-access-status-tabs .v2-metric-action-content {
display: flex;
width: 100%;
min-width: 0;
align-items: center;
}
.v2-access-status-tabs .v2-metric-action-content {
gap: 8px;
}
.v2-access-status-tabs small {
overflow: hidden;
color: inherit;
font-size: 11px;
font-weight: 650;
text-overflow: ellipsis;
white-space: nowrap;
}
.v2-access-status-tabs strong {
margin-left: auto;
color: #304157;
font-size: 16px;
line-height: 1;
font-variant-numeric: tabular-nums;
}
.v2-access-status-tabs .is-attention strong,
.v2-access-status-tabs .is-incomplete strong {
color: #c46b0d;
}
.v2-access-status-tabs .is-never strong {
color: #67778b;
}
.v2-access-status-tabs em {
color: #8b98aa;
font-size: 9px;
font-style: normal;
}
.v2-access-table-v3 .semi-table-tbody > .semi-table-row > .semi-table-row-cell {
height: 58px;
padding-block: 6px;
}
.v2-ops-page {
width: 100%;
height: 100%;
@@ -8427,6 +8530,23 @@
padding: 7px 7px 8px;
}
.v2-access-discovery-shell {
display: contents;
}
.v2-access-discovery-shell > .v2-workspace-command-bar {
min-height: 48px;
border: 1px solid #dce6f2;
border-radius: 10px;
background: linear-gradient(105deg, #fff 0%, #f8fbff 100%);
}
.v2-access-discovery-shell > .v2-access-filter-card-v3.semi-card {
border: 1px solid #dce6f2;
border-radius: 10px;
box-shadow: var(--v2-shadow);
}
.v2-access-filter-card-v3 > .semi-card-body > .v2-workspace-filter-heading {
display: flex;
}
@@ -8457,42 +8577,6 @@
flex: 1 1 0;
}
.v2-access-kpis-card-v3.semi-card,
.v2-access-kpis-v3 {
min-height: 62px;
}
.v2-access-kpis-v3 {
grid-template-columns: repeat(4, minmax(0, 1fr));
}
.v2-access-kpis-v3 .v2-metric-action {
min-height: 62px;
padding: 7px 6px;
}
.v2-access-kpis-v3 .v2-metric-action-content {
display: grid;
align-content: center;
gap: 4px;
}
.v2-access-kpis-v3 small {
overflow: hidden;
font-size: 8px;
text-overflow: ellipsis;
white-space: nowrap;
}
.v2-access-kpis-v3 strong {
margin-left: 0;
font-size: 16px;
}
.v2-access-kpis-v3 em {
display: none;
}
.v2-access-workspace-v3 {
min-height: 0;
flex: 1 1 0;
@@ -8502,10 +8586,59 @@
.v2-access-table-v3 > .semi-card-body > .v2-workspace-panel-header {
min-height: 50px;
align-items: center;
flex-direction: row;
padding: 6px 8px;
}
.v2-access-table-v3 .v2-workspace-panel-copy > .semi-typography {
.v2-access-table-v3 .v2-workspace-panel-copy {
width: auto;
flex: 1 1 auto;
}
.v2-access-table-v3 .v2-workspace-panel-copy > .semi-typography:not(h5) {
display: none;
}
.v2-access-table-v3 .v2-workspace-panel-copy > h5.semi-typography {
display: block;
font-size: 12px;
}
.v2-access-table-v3 .v2-access-table-actions {
width: auto;
max-width: none;
flex: 0 0 auto;
flex-wrap: nowrap;
}
.v2-access-status-tabs {
min-height: 44px;
}
.v2-access-status-tabs .v2-metric-action.semi-button {
height: 44px;
padding: 0 6px;
}
.v2-access-status-tabs .v2-metric-action + .v2-metric-action::before {
inset-block: 9px;
}
.v2-access-status-tabs .v2-metric-action-content {
justify-content: center;
gap: 4px;
}
.v2-access-status-tabs small {
font-size: 9px;
}
.v2-access-status-tabs strong {
margin-left: 0;
font-size: 13px;
}
.v2-access-status-tabs em {
display: none;
}
@@ -8557,11 +8690,11 @@
}
.v2-access-mobile-card-content > header strong {
font-size: 13px;
font-size: 14px;
}
.v2-access-mobile-card-content > header small {
font-size: 8px;
font-size: 9px;
}
.v2-access-mobile-card-content > header .v2-access-connection {
@@ -8581,8 +8714,8 @@
.v2-access-mobile-card-content > p {
overflow: hidden;
font-size: 9px;
line-height: 12px;
font-size: 10px;
line-height: 13px;
text-overflow: ellipsis;
white-space: nowrap;
}
@@ -8603,7 +8736,7 @@
min-width: 0;
overflow: hidden;
color: #50627a;
font-size: 8px;
font-size: 9px;
line-height: 11px;
text-overflow: ellipsis;
white-space: nowrap;
@@ -8612,7 +8745,7 @@
.v2-access-mobile-list .v2-access-protocol-cell > span {
justify-self: end;
gap: 3px;
font-size: 8px;
font-size: 9px;
line-height: 11px;
}
@@ -8623,7 +8756,7 @@
.v2-access-mobile-list .v2-access-protocol-cell > strong {
grid-column: 1 / -1;
font-size: 8px;
font-size: 9px;
line-height: 11px;
}
@@ -8648,6 +8781,22 @@
height: 34px;
}
.v2-access-detail-sidesheet .v2-access-protocol-details.semi-card-group {
display: grid;
grid-template-columns: minmax(0, 1fr);
overflow-x: hidden;
gap: 8px;
padding: 10px;
scroll-snap-type: none;
}
.v2-access-detail-sidesheet .v2-access-protocol-detail.semi-card {
width: 100%;
min-width: 0;
flex: none;
scroll-snap-align: none;
}
.v2-ops-page {
height: auto;
min-height: 100%;