feat(panel): refine macOS overlay geometry, port discovery, font tokens, and LF bundling

Co-authored-by: Swei <sweilo@qq.com>
This commit is contained in:
fish
2026-11-17 22:30:01 +09:00
co-authored by Swei
parent 96bf0c049f
commit d4d359bc89
13 changed files with 444 additions and 25 deletions
@@ -638,7 +638,15 @@ test('panel typography scales all view/table/chart CSS rules via --fs-* tokens w
);
}
const tokensCss = fs.readFileSync(join(stylesDir, 'tokens.css'), 'utf8');
assert.match(tokensCss, /--font-sans\s*:[^;]+"SF Pro Text"/);
assert.match(tokensCss, /--font-mono\s*:\s*ui-monospace,\s*SFMono-Regular,\s*"SF Mono"/);
assert.match(tokensCss, /:host\(\[data-font-scale="xl"\]\)/);
assert.match(tokensCss, /\[data-font-scale\]\s*\{[\s\S]*?--fs-base-sm:/);
assert.doesNotMatch(tokensCss, /:root,\s*:host\s*\{[^}]*--ui-font-scale\s*:\s*1\s*;/);
const panelRoot = fileURLToPath(new URL('..', import.meta.url));
for (const artifact of ['styles.css', 'app.js', 'index.html']) {
const rawArtifact = fs.readFileSync(join(panelRoot, artifact), 'utf8');
assert.equal(rawArtifact.includes('\r\n'), false, `${artifact} must normalize line endings to LF`);
}
});