Align top panel headers with master sidebar

This commit is contained in:
2026-08-05 16:53:58 +02:00
parent a83b9b3ab9
commit 868e85d054
4 changed files with 13 additions and 1 deletions
+10
View File
@@ -90,6 +90,16 @@ test("uses one shared visual style for the top panel headers", async ({ page })
expect(new Set(styles.map((style) => JSON.stringify(style))).size).toBe(1);
});
test("keeps the top panel headers on one baseline", async ({ page }) => {
await page.goto("/");
const positions = await page.locator(".panel-header").evaluateAll((elements) => elements.map((element) => {
const rect = element.getBoundingClientRect();
return [rect.top, rect.height];
}));
expect(new Set(positions.map((position) => JSON.stringify(position))).size).toBe(1);
expect(positions[0][0]).toBe(0);
});
test("uses one shared visual style for panel controls", async ({ page }) => {
await page.goto("/");
const styles = await page.locator("#sidebarCloseButton, #secondaryPanelToggle, #mainWorkspaceToggle").evaluateAll((elements) => elements.map((element) => {