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:
+42
-20
@@ -172,6 +172,7 @@
|
||||
--ui-panel-scale: 1.18;
|
||||
}
|
||||
|
||||
:host([data-font-scale]),
|
||||
[data-font-scale] {
|
||||
--fs-2xs: calc(10.5px * var(--ui-font-scale, 1));
|
||||
--fs-xs: calc(11px * var(--ui-font-scale, 1));
|
||||
@@ -230,6 +231,11 @@ body {
|
||||
color: var(--text-primary);
|
||||
font-family: var(--font-sans);
|
||||
font-size: var(--fs-body);
|
||||
font-weight: 400;
|
||||
font-stretch: 100%;
|
||||
font-variation-settings: normal;
|
||||
font-feature-settings: normal;
|
||||
letter-spacing: normal;
|
||||
line-height: 1.4;
|
||||
font-variant-numeric: tabular-nums;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
@@ -1962,7 +1968,7 @@ html[data-standalone="true"] .app-shell {
|
||||
.live-task-header-right {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
gap: 6px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
@@ -2071,7 +2077,7 @@ html[data-standalone="true"] .app-shell {
|
||||
font-weight: 500;
|
||||
color: var(--text-secondary);
|
||||
white-space: nowrap;
|
||||
min-width: 28px;
|
||||
min-width: 22px;
|
||||
text-align: right;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
@@ -8104,6 +8110,11 @@ html[data-standalone="true"] .app-shell {
|
||||
z-index: 2147483000;
|
||||
font-family: var(--font-sans);
|
||||
font-size: var(--fs-body);
|
||||
font-weight: 400;
|
||||
font-stretch: 100%;
|
||||
font-variation-settings: normal;
|
||||
font-feature-settings: normal;
|
||||
letter-spacing: normal;
|
||||
line-height: 1.4;
|
||||
font-variant-numeric: tabular-nums;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
@@ -8185,14 +8196,14 @@ html[data-standalone="true"] .app-shell {
|
||||
animation: wm-popover-in var(--dur-instant) var(--ease-fast);
|
||||
}
|
||||
|
||||
/* 左侧在线多会话实时看板浮层(单层无套娃细线卡片,仅显示在线运行会话,留足呼吸感) */
|
||||
/* 左侧在线多会话实时看板浮层(单层无套娃细线卡片,宽度与排版密度与侧边栏保持一致) */
|
||||
.wm-multi-panel {
|
||||
position: fixed;
|
||||
top: 42px;
|
||||
left: 12px;
|
||||
width: min(calc(464px * var(--ui-panel-scale, 1)), calc(100vw - 24px));
|
||||
width: min(calc(522px * var(--ui-panel-scale, 1)), calc(100vw - 24px));
|
||||
max-height: calc(100vh - 54px);
|
||||
padding: 14px 16px;
|
||||
padding: 12px 14px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0;
|
||||
@@ -8326,53 +8337,50 @@ html[data-standalone="true"] .app-shell {
|
||||
}
|
||||
|
||||
.wm-task-metrics {
|
||||
font-size: var(--fs-md);
|
||||
color: var(--text-secondary);
|
||||
font-size: var(--fs-sm);
|
||||
font-weight: 500;
|
||||
color: var(--text-muted);
|
||||
white-space: nowrap;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.wm-multi-header {
|
||||
padding-bottom: 10px;
|
||||
padding-bottom: 8px;
|
||||
border-bottom: 1px solid var(--border-hairline);
|
||||
}
|
||||
|
||||
/* 多会话单层面板内去除重复边框与底色,留足行距与段落呼吸感,仅靠左侧圆点闪烁表达状态 */
|
||||
/* 多会话单层面板内去除重复边框与底色,对齐侧边栏任务卡片间距与左侧基线 */
|
||||
.wm-multi-panel .live-activity-list {
|
||||
gap: 0;
|
||||
}
|
||||
|
||||
.wm-multi-panel .live-task-card {
|
||||
gap: 8px;
|
||||
padding: 12px 2px;
|
||||
gap: 7px;
|
||||
padding: 10px 0;
|
||||
border: none;
|
||||
border-radius: 0;
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
.wm-multi-panel .live-task-card:first-child {
|
||||
padding-top: 11px;
|
||||
padding-top: 9px;
|
||||
}
|
||||
|
||||
.wm-multi-panel .live-task-card:last-child {
|
||||
padding-bottom: 2px;
|
||||
padding-bottom: 0;
|
||||
}
|
||||
|
||||
.wm-multi-panel .live-task-card + .live-task-card {
|
||||
border-top: 1px solid var(--border-hairline);
|
||||
}
|
||||
|
||||
.wm-multi-panel .live-task-title {
|
||||
font-size: var(--fs-body);
|
||||
}
|
||||
|
||||
.wm-multi-empty {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: var(--space-3);
|
||||
min-height: 36px;
|
||||
padding: 12px 2px 4px;
|
||||
padding: 10px 0 2px;
|
||||
font-size: var(--fs-base);
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
@@ -9329,7 +9337,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;
|
||||
@@ -9347,12 +9359,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