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:
@@ -303,6 +303,21 @@ test('applyAppearanceToRoot and SettingsGeneralTab toggle data-modern-ui + data-
|
||||
builtStyles,
|
||||
/\[data-modern-ui="true"\]\.wm-multi-panel\s+\.live-task-card[\s\S]*?background:\s*transparent;/
|
||||
);
|
||||
assert.match(
|
||||
builtStyles,
|
||||
/:host\(\.wm-portal-host\)\s*\{[^}]*font-stretch:\s*100%;[^}]*font-variation-settings:\s*normal;[^}]*letter-spacing:\s*normal;/s,
|
||||
'Portal Shadow host must reset inherited host font-stretch/variation/letter-spacing to match sidebar typography'
|
||||
);
|
||||
assert.match(
|
||||
builtStyles,
|
||||
/\.wm-multi-panel\s+\.live-task-card\s*\{[^}]*gap:\s*7px;[^}]*padding:\s*10px\s+0;/s,
|
||||
'Floating multi-session task cards must match sidebar 7px row gap and 0px horizontal inset alignment'
|
||||
);
|
||||
assert.match(
|
||||
builtStyles,
|
||||
/\[data-modern-ui="true"\]\.wm-multi-panel\s+\.live-task-card:last-child[\s\S]*?padding-bottom:\s*0;/,
|
||||
'Modern UI multi-session panel must preserve symmetric bottom padding on last task card'
|
||||
);
|
||||
assert.match(
|
||||
builtStyles,
|
||||
/\.ctx-inspector-bar\s*\{[^}]*align-items:\s*flex-start;/,
|
||||
|
||||
Reference in New Issue
Block a user