refine Semi UI mileage filters

This commit is contained in:
lingniu
2026-07-18 22:41:46 +08:00
parent b465d1ff7a
commit 2824c08eb6
4 changed files with 221 additions and 16 deletions

View File

@@ -11563,3 +11563,128 @@ button, a { -webkit-tap-highlight-color: transparent; }
font-size: 11px;
}
}
/* Semi UI mileage workflow: keep the mobile data canvas stable while filters open. */
.v2-mileage-filter-title {
display: flex;
min-width: 0;
flex-direction: column;
gap: 3px;
}
.v2-mileage-filter-title strong {
color: #213149;
font-size: 15px;
line-height: 1.25;
}
.v2-mileage-filter-title span {
color: #7c8b9f;
font-size: 10px;
font-weight: 500;
}
.v2-mileage-filter-footer {
display: flex;
width: 100%;
min-width: 0;
align-items: center;
justify-content: space-between;
gap: 12px;
}
.v2-mileage-filter-footer > span {
color: #7b899b;
font-size: 10px;
}
.v2-mileage-filter-footer > .semi-button {
min-width: 118px;
min-height: 38px;
border-radius: 8px;
font-weight: 700;
}
@media (max-width: 680px) {
.v2-mileage-mobile-discovery {
display: grid;
min-width: 0;
flex: 0 0 auto;
gap: 7px;
}
.v2-mileage-mobile-discovery > .v2-mobile-filter-toggle.semi-button {
min-height: 58px;
margin: 0;
}
.v2-mileage-filter-sidesheet .semi-sidesheet-inner {
width: 100vw !important;
overflow: hidden;
border-radius: 18px 18px 0 0;
background: #f4f7fb;
box-shadow: 0 -20px 56px rgba(25, 45, 72, .2);
}
.v2-mileage-filter-sidesheet .semi-sidesheet-header {
min-height: 68px;
border-bottom: 1px solid #dfe7f0;
background: rgba(255, 255, 255, .98);
padding: 11px 14px;
}
.v2-mileage-filter-sidesheet .semi-sidesheet-body {
overflow: auto;
background: #f4f7fb;
padding: 12px;
overscroll-behavior: contain;
}
.v2-mileage-filter-sidesheet .semi-sidesheet-footer {
border-top: 1px solid #dfe7f0;
background: rgba(255, 255, 255, .98);
padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
}
.v2-mileage-filter-sidesheet .v2-mileage-filter {
display: grid !important;
min-height: 0;
grid-template-columns: 1fr;
gap: 12px;
border: 1px solid #dfe7f0;
border-radius: 12px;
background: #fff;
padding: 12px;
box-shadow: 0 8px 24px rgba(31, 53, 80, .06);
}
.v2-mileage-filter-sidesheet .v2-mileage-filter > label {
gap: 6px;
color: #5f7188;
font-size: 11px;
}
.v2-mileage-filter-sidesheet .v2-mileage-filter > label > .semi-input-wrapper,
.v2-mileage-filter-sidesheet .v2-mileage-source-trigger.semi-button {
height: 44px;
min-height: 44px;
border-radius: 9px;
}
.v2-mileage-filter-sidesheet .v2-mileage-selection > .semi-input-wrapper .semi-input,
.v2-mileage-filter-sidesheet .v2-mileage-filter > label > .semi-input-wrapper .semi-input {
font-size: 14px;
}
.v2-mileage-filter-sidesheet .v2-mileage-inline-submit {
display: none;
}
.v2-mileage-filter-sidesheet .v2-mileage-source-strategy {
width: 100%;
}
.v2-mileage-filter-sidesheet .v2-mileage-ranges {
height: 44px;
order: 5;
border: 1px solid #e0e7f0;
border-radius: 9px;
background: #f4f7fb;
padding: 4px;
}
.v2-mileage-filter-sidesheet .v2-mileage-ranges .semi-button {
height: 34px;
border-radius: 7px;
font-size: 10px;
}
.v2-mileage-filter-sidesheet .v2-mileage-validation {
margin: 9px 2px 0;
}
.v2-mileage-filter-footer > span {
max-width: 150px;
line-height: 1.4;
}
}