完善美国首页和登录订单概览并修复语音提示抖动
This commit is contained in:
+100
-1
@@ -97,7 +97,27 @@ body { padding: 20px; height: 100vh; height: 100dvh; overflow: hidden; }
|
||||
.recent-item > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
||||
.recent-item:hover { color: var(--brand-text); }
|
||||
.recent-date { white-space: nowrap; color: var(--muted); font-size: 10px; }
|
||||
.composer { flex-shrink: 0; align-self: center; width: min(820px, calc(100% - 76px)); padding: 12px 0 15px; background: var(--surface); }
|
||||
.composer { position: relative; flex-shrink: 0; align-self: center; width: min(820px, calc(100% - 76px)); padding: 12px 0 15px; background: var(--surface); }
|
||||
.voice-feedback {
|
||||
position: absolute;
|
||||
z-index: 36;
|
||||
bottom: calc(100% + 8px);
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
width: max-content;
|
||||
max-width: 100%;
|
||||
padding: 9px 14px;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 10px;
|
||||
background: var(--surface);
|
||||
color: var(--text);
|
||||
box-shadow: var(--shadow);
|
||||
text-align: center;
|
||||
font-size: 13px;
|
||||
line-height: 1.5;
|
||||
pointer-events: none;
|
||||
}
|
||||
.voice-feedback.is-error { border-color: var(--danger); color: var(--danger); }
|
||||
.composer-toolbar { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
|
||||
.composer-toolbar .hot-bar { flex: 1; min-width: 0; margin-bottom: 0; }
|
||||
.voice-toggle, .voice-hold { display: none; }
|
||||
@@ -285,3 +305,82 @@ body { padding: 20px; height: 100vh; height: 100dvh; overflow: hidden; }
|
||||
.msg-action-btn { min-height: 40px; }
|
||||
.to-bottom { right: 15px; }
|
||||
}
|
||||
.customer-overview {
|
||||
flex-shrink: 0;
|
||||
max-height: 36%;
|
||||
margin: 12px 32px 0;
|
||||
overflow-y: auto;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 12px;
|
||||
background: var(--surface);
|
||||
}
|
||||
.customer-overview > summary {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 1;
|
||||
min-height: 44px;
|
||||
padding: 10px 16px;
|
||||
background: var(--surface);
|
||||
cursor: pointer;
|
||||
list-style: none;
|
||||
}
|
||||
.customer-overview > summary::-webkit-details-marker { display: none; }
|
||||
.customer-overview > summary::after { content: '⌄'; color: var(--muted); }
|
||||
.customer-overview[open] > summary::after { transform: rotate(180deg); }
|
||||
#customer-overview-title { flex-shrink: 0; font-weight: 650; }
|
||||
#customer-overview-summary {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
text-align: right;
|
||||
font-size: 12px;
|
||||
color: var(--secondary);
|
||||
}
|
||||
.customer-overview-body { padding: 0 16px 12px; }
|
||||
.overview-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
|
||||
.overview-metric {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-width: 0;
|
||||
padding: 8px;
|
||||
border: 0;
|
||||
border-radius: 8px;
|
||||
background: var(--surface-soft);
|
||||
color: var(--text);
|
||||
text-align: left;
|
||||
}
|
||||
.overview-metric strong { font-size: 21px; line-height: 1.3; }
|
||||
.overview-metric span { color: var(--secondary); font-size: 12px; }
|
||||
.overview-metric:last-child strong { color: var(--danger); }
|
||||
.overview-stages { display: flex; flex-wrap: wrap; gap: 6px 12px; margin: 10px 0; color: var(--secondary); font-size: 12px; }
|
||||
.overview-orders { display: grid; gap: 6px; }
|
||||
.overview-order {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) auto;
|
||||
gap: 2px 10px;
|
||||
min-width: 0;
|
||||
min-height: 44px;
|
||||
padding: 8px 10px;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 8px;
|
||||
background: var(--surface);
|
||||
color: var(--text);
|
||||
text-align: left;
|
||||
}
|
||||
.overview-reference { overflow-wrap: anywhere; font-size: 13px; }
|
||||
.overview-stage { max-width: 180px; color: var(--secondary); font-size: 12px; text-align: right; }
|
||||
.overview-reason { grid-column: 1 / -1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--danger); font-size: 12px; }
|
||||
.overview-order.has-exception { border-left: 3px solid var(--danger); }
|
||||
.overview-refresh { margin-top: 8px; padding: 4px 0; border: 0; background: transparent; color: var(--brand-text); font-size: 12px; }
|
||||
.overview-empty { color: var(--secondary); font-size: 13px; }
|
||||
@media (max-width: 720px) {
|
||||
.customer-overview { max-height: 32%; margin: 8px 12px 0; }
|
||||
.customer-overview > summary { padding: 9px 12px; gap: 8px; }
|
||||
.customer-overview-body { padding: 0 12px 10px; }
|
||||
.overview-stage { max-width: 120px; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user