Skip to content

Open-source Grok Bot alternative for named AI teammates. Local-first desktop, web, and mobile clients with per-bot tools, instructions, and memory. Independent fork of T3 Code.

Tighten workspace control spacing in the header

Julius Marminge9d5e632d4d41
diff --git a/apps/web/src/components/ChatView.browser.tsx b/apps/web/src/components/ChatView.browser.tsx
index 0ef776432..f576a4732 100644
--- a/apps/web/src/components/ChatView.browser.tsx
+++ b/apps/web/src/components/ChatView.browser.tsx
@@ -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();
diff --git a/apps/web/src/index.css b/apps/web/src/index.css
index e9d2b5027..9048e2074 100644
--- a/apps/web/src/index.css
+++ b/apps/web/src/index.css
@@ -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
);
}