fix: align PDF workspace with Toolbox shell

This commit is contained in:
2026-07-23 12:57:50 +02:00
parent 92dd3bcab3
commit b76886e3ec
8 changed files with 29 additions and 9 deletions

View File

@@ -0,0 +1,13 @@
import { readFile } from 'node:fs/promises';
import { describe, expect, it } from 'vitest';
describe('Toolbox layout styles', () => {
it('keeps the PDF workspace aligned to the 90rem shell width', async () => {
const stylesheet = await readFile('src/styles.css', 'utf8');
const mainRule = stylesheet.match(
/\.pdf-toolbox-shell \.toolbox-shell__main\s*\{(?<body>[^}]*)\}/u
);
expect(mainRule?.groups?.body).toMatch(/\bmax-width:\s*90rem\s*;/u);
});
});