| author | |
| committer | |
| log | 9d5e632d4d41ca3f6932506255134dc297ba0278 |
| tree | 85b00dbbd94393bb66942ae9cfd0897340f57c87 |
| parent | c2d44a312c072c29056f7f87938026f366879d75 |
- Align header controls with the 12px right inset
- Use a smaller control offset in window controls overlay mode2 files changed, 4 insertions(+), 8 deletions(-)
apps/web/src/components/ChatView.browser.tsx+2| ... | ... | @@ -2151,6 +2151,7 @@ describe("ChatView timeline estimator parity (full app)", () => { |
| 2151 | 2151 | ).toBe("no-drag"); |
| 2152 | 2152 | expect(chatHeader.classList.contains("drag-region")).toBe(false); |
| 2153 | 2153 | expect(chatHeader.contains(panelLayoutControls)).toBe(true); |
| 2154 | expect(window.innerWidth - panelLayoutControls.getBoundingClientRect().right).toBe(12); | |
| 2154 | 2155 | const initialTerminalRect = terminalToggle.getBoundingClientRect(); |
| 2155 | 2156 | const initialRightPanelRect = rightPanelToggle.getBoundingClientRect(); |
| 2156 | 2157 | const initialControlRects = [initialTerminalRect, initialRightPanelRect]; |
| ... | ... | @@ -2172,6 +2173,7 @@ describe("ChatView timeline estimator parity (full app)", () => { |
| 2172 | 2173 | expect(panelLayoutControls.getBoundingClientRect().top).toBe( |
| 2173 | 2174 | chatHeader.getBoundingClientRect().top, |
| 2174 | 2175 | ); |
| 2176 | expect(window.innerWidth - panelLayoutControls.getBoundingClientRect().right).toBe(12); | |
| 2175 | 2177 | document.documentElement.classList.remove("wco"); |
| 2176 | 2178 | |
| 2177 | 2179 | rightPanelToggle.click(); |
apps/web/src/index.css+2-8| ... | ... | @@ -11,20 +11,14 @@ |
| 11 | 11 | --workspace-native-controls-inset: 0px; |
| 12 | 12 | } |
| 13 | 13 | |
| 14 | @media (width >= 40rem) { | |
| 15 | :root { | |
| 16 | --workspace-controls-right: calc(env(safe-area-inset-right) + 1.25rem); | |
| 17 | } | |
| 18 | } | |
| 19 | ||
| 20 | 14 | .wco { |
| 21 | 15 | --workspace-topbar-height: env(titlebar-area-height, 52px); |
| 22 | 16 | --workspace-controls-top: env(titlebar-area-y, 0px); |
| 23 | 17 | --workspace-controls-right: calc( |
| 24 | 100vw - env(titlebar-area-width, 100vw) - env(titlebar-area-x, 0px) + 1em | |
| 18 | 100vw - env(titlebar-area-width, 100vw) - env(titlebar-area-x, 0px) + 0.75rem | |
| 25 | 19 | ); |
| 26 | 20 | --workspace-native-controls-inset: calc( |
| 27 | 100vw - env(titlebar-area-width, 100vw) - env(titlebar-area-x, 0px) + 1em | |
| 21 | 100vw - env(titlebar-area-width, 100vw) - env(titlebar-area-x, 0px) + 0.75rem | |
| 28 | 22 | ); |
| 29 | 23 | } |
| 30 | 24 |