feat(platform): polish customer time window controls

This commit is contained in:
lingniu
2026-07-05 20:54:04 +08:00
parent 2b246f414e
commit 68c1c7cef4
3 changed files with 90 additions and 24 deletions

View File

@@ -238,13 +238,25 @@ body {
min-width: 0;
}
.vp-sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}
.vp-topbar {
height: var(--vp-shell-header);
min-height: 72px;
display: grid;
grid-template-columns: minmax(380px, 0.8fr) minmax(0, 1.2fr);
grid-template-columns: minmax(350px, 0.62fr) minmax(0, 1.38fr);
align-items: center;
gap: 16px;
padding: 0 24px;
gap: 12px;
padding: 8px 24px;
background: rgba(255, 255, 255, 0.9);
border-bottom: 1px solid var(--vp-border);
backdrop-filter: blur(12px);
@@ -261,26 +273,55 @@ body {
min-width: 0;
display: flex;
align-items: center;
justify-content: flex-end;
gap: 8px;
white-space: nowrap;
align-content: center;
justify-content: flex-start;
gap: 6px;
overflow: hidden;
white-space: normal;
flex-wrap: wrap;
}
.vp-topbar-time-window {
display: inline-flex;
align-items: center;
gap: 4px;
padding: 2px;
gap: 6px;
min-width: 0;
max-width: 100%;
padding: 4px 6px;
border: 1px solid var(--vp-border);
border-radius: 8px;
background: #f8fafc;
}
.vp-topbar-time-window-copy {
display: inline-flex;
flex-direction: column;
justify-content: center;
width: 136px;
flex: 0 0 auto;
line-height: 1.1;
}
.vp-topbar-time-window-copy strong {
color: var(--vp-text);
font-size: 12px;
font-weight: 700;
}
.vp-topbar-time-window-copy span {
max-width: 136px;
overflow: hidden;
color: var(--vp-text-muted);
font-size: 10px;
text-overflow: ellipsis;
}
.vp-topbar-time-window-presets {
display: inline-flex;
align-items: center;
gap: 2px;
padding-left: 2px;
flex: 0 0 auto;
}
.vp-topbar-time-window-presets button {
@@ -305,20 +346,23 @@ body {
.vp-topbar-time-window label {
display: inline-flex;
align-items: center;
flex: 0 0 auto;
gap: 4px;
height: 28px;
padding: 0 6px;
padding: 0 4px 0 6px;
border-radius: 6px;
background: #ffffff;
color: var(--vp-text-muted);
font-size: 12px;
font-weight: 600;
}
.vp-topbar-time-window input {
width: 118px;
width: 114px;
height: 24px;
border: 0;
border-radius: 6px;
background: #ffffff;
border-radius: 4px;
background: #f8fafc;
color: var(--vp-text);
font-size: 12px;
outline: none;
@@ -332,6 +376,7 @@ body {
height: 32px;
display: inline-flex;
align-items: center;
flex: 0 0 auto;
padding: 2px;
border: 1px solid var(--vp-border);
border-radius: 8px;