Tighten workspace control spacing in the header

- Align header controls with the 12px right inset
- Use a smaller control offset in window controls overlay mode
This commit is contained in:
Julius Marminge committed 2026-06-15 16:05:36 -07:00
1 parent c2d44a312c
commit 9d5e632d4d
2 files changed
+4 -8

No files matched your search

@@ -2151,6 +2151,7 @@ describe("ChatView timeline estimator parity (full app)", () => {
).toBe("no-drag");
expect(chatHeader.classList.contains("drag-region")).toBe(false);
expect(chatHeader.contains(panelLayoutControls)).toBe(true);
expect(window.innerWidth - panelLayoutControls.getBoundingClientRect().right).toBe(12);
const initialTerminalRect = terminalToggle.getBoundingClientRect();
const initialRightPanelRect = rightPanelToggle.getBoundingClientRect();
const initialControlRects = [initialTerminalRect, initialRightPanelRect];
@@ -2172,6 +2173,7 @@ describe("ChatView timeline estimator parity (full app)", () => {
expect(panelLayoutControls.getBoundingClientRect().top).toBe(
chatHeader.getBoundingClientRect().top,
);
expect(window.innerWidth - panelLayoutControls.getBoundingClientRect().right).toBe(12);
document.documentElement.classList.remove("wco");
rightPanelToggle.click();
+2 -8
View File
@@ -11,20 +11,14 @@
--workspace-native-controls-inset: 0px;
}
@media (width >= 40rem) {
:root {
--workspace-controls-right: calc(env(safe-area-inset-right) + 1.25rem);
}
}
.wco {
--workspace-topbar-height: env(titlebar-area-height, 52px);
--workspace-controls-top: env(titlebar-area-y, 0px);
--workspace-controls-right: calc(
100vw - env(titlebar-area-width, 100vw) - env(titlebar-area-x, 0px) + 1em
100vw - env(titlebar-area-width, 100vw) - env(titlebar-area-x, 0px) + 0.75rem
);
--workspace-native-controls-inset: calc(
100vw - env(titlebar-area-width, 100vw) - env(titlebar-area-x, 0px) + 1em
100vw - env(titlebar-area-width, 100vw) - env(titlebar-area-x, 0px) + 0.75rem
);
}