refine Semi UI responsive application shell

This commit is contained in:
lingniu
2026-07-18 05:50:04 +08:00
parent 32d97a0ddc
commit 018ec20256
4 changed files with 88 additions and 6 deletions

View File

@@ -4837,15 +4837,25 @@
@media (max-width: 680px) {
.v2-topbar {
height: 56px;
flex-basis: 56px;
padding-inline: 12px 8px;
}
.v2-topbar-title > .semi-typography {
.v2-topbar-title {
min-width: 0;
flex: 1 1 auto;
}
.v2-topbar-title > .v2-topbar-product.semi-typography {
display: none;
}
.v2-topbar-title > h4.semi-typography {
.v2-topbar-title > .v2-topbar-page-title.semi-typography {
display: block;
max-width: min(58vw, 230px);
font-size: 17px;
line-height: 1.2;
}
.v2-topbar-actions {
@@ -4872,6 +4882,52 @@
padding: 0;
}
.v2-mobile-navigation {
border-top-color: #e1e8f1;
background: rgba(255, 255, 255, .985);
box-shadow: 0 -8px 26px rgba(25, 44, 70, .085);
}
.v2-mobile-navigation .v2-mobile-nav-item {
gap: 2px;
background: transparent;
}
.v2-mobile-navigation .v2-mobile-nav-item > .semi-icon,
.v2-mobile-navigation > .semi-button.v2-mobile-nav-item .semi-icon {
display: inline-grid;
width: 32px;
height: 26px;
flex: 0 0 auto;
place-items: center;
border-radius: 9px;
font-size: 18px;
transition: background-color .16s ease, color .16s ease, box-shadow .16s ease;
}
.v2-mobile-navigation .v2-mobile-nav-item.is-active {
background: transparent;
color: var(--v2-blue);
}
.v2-mobile-navigation .v2-mobile-nav-item.is-active > .semi-icon,
.v2-mobile-navigation > .semi-button.v2-mobile-nav-item.is-active .semi-icon {
background: #eaf3ff;
box-shadow: inset 0 0 0 1px rgba(18, 104, 243, .07);
}
.v2-mobile-navigation .v2-mobile-nav-item.is-active::after {
display: none;
}
.v2-mobile-navigation > .semi-button.v2-mobile-nav-item .semi-button-content {
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
gap: 2px;
}
.v2-help-sheet .semi-sidesheet-inner {
width: 100vw !important;
}