mirror of
https://github.com/lWolvesl/antigravity-usage-monitor.git
synced 2026-11-27 01:19:25 +08:00
fix(panel): align floating task panel font and spacing with sidebar
- Mirror host --font-sans/--font-mono onto portalHost before native theme early-return so Shadow DOM overlays inherit host fonts instead of falling back to narrower system defaults - Reset font-weight, font-stretch, font-variation-settings, font-feature-settings, and letter-spacing on portalHost and panel root, and enable :host([data-font-scale]) token scaling - Align multi-session floating panel width (522px), card row gap (7px), header baseline, Modern UI last-child bottom padding, and right-side elapsed spacing with the sidebar task card
This commit is contained in:
@@ -934,7 +934,11 @@ html[data-standalone="true"][data-modern-ui="true"] .app-shell {
|
||||
}
|
||||
|
||||
[data-modern-ui="true"] .wm-multi-header,
|
||||
:host([data-modern-ui="true"]) .wm-multi-header,
|
||||
:host([data-modern-ui="true"]) .wm-multi-header {
|
||||
border: none;
|
||||
padding-bottom: 6px;
|
||||
}
|
||||
|
||||
[data-modern-ui="true"].wm-multi-panel .live-task-card + .live-task-card,
|
||||
:host([data-modern-ui="true"]) .wm-multi-panel .live-task-card + .live-task-card {
|
||||
border: none;
|
||||
@@ -952,12 +956,22 @@ html[data-standalone="true"][data-modern-ui="true"] .app-shell {
|
||||
|
||||
[data-modern-ui="true"].wm-multi-panel .live-task-card,
|
||||
:host([data-modern-ui="true"]) .wm-multi-panel .live-task-card {
|
||||
padding: 10px 2px;
|
||||
padding: 8px 0;
|
||||
border-radius: 0;
|
||||
background: transparent;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
[data-modern-ui="true"].wm-multi-panel .live-task-card:first-child,
|
||||
:host([data-modern-ui="true"]) .wm-multi-panel .live-task-card:first-child {
|
||||
padding-top: 8px;
|
||||
}
|
||||
|
||||
[data-modern-ui="true"].wm-multi-panel .live-task-card:last-child,
|
||||
:host([data-modern-ui="true"]) .wm-multi-panel .live-task-card:last-child {
|
||||
padding-bottom: 0;
|
||||
}
|
||||
|
||||
/* --- 8. 顶栏胶囊老虎机滚动数字 (0.15s) 与语义色平滑渐变 (0.1s),严格限定实验性新 UI --- */
|
||||
:host([data-modern-ui="true"]) .wm-cap-slot,
|
||||
:host([data-modern-ui="true"]) .wm-cap-slot .wm-slot-text,
|
||||
|
||||
Reference in New Issue
Block a user