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:
fish
2026-11-25 13:18:21 +09:00
parent fd9948f9ac
commit 5565133710
11 changed files with 284 additions and 42 deletions
+15
View File
@@ -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;/,