mirror of
https://github.com/lWolvesl/antigravity-usage-monitor.git
synced 2026-11-27 01:19:25 +08:00
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:
@@ -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`);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user