@devries-cameron20 / t3code Mirror · read-only / commits / 20012ebd80
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 23, 20:30 UTC

fix(web): keep the terminal toggle clear of the last header action (#13426)

Igor Makowski committed Oct 2, 2026 at 05:33 UTC 20012ebd80b06a4c10ab0e78893822e7f873b2a8
2 files changed +11 -4
apps/web/src/components/ChatView.tsx
+6 -1
@@ -9516,7 +9516,12 @@ export default function ChatView(props: ChatViewProps) {
9516 "flex shrink-0",
9517 panelAnimationsActive &&
9518 "motion-safe:transition-opacity motion-safe:duration-(--panel-animation-duration) motion-safe:ease-out",
9519 - rightPanelOpen ? "pointer-events-auto opacity-100" : "pointer-events-none opacity-0",
9519 + // Closed, the control leaves the flex flow so the cluster is only as wide as the two
9520 + // toggles the header reserves room for; anchored to the cluster's left edge, it fades
9521 + // out where it stood rather than over the terminal toggle.
9522 + rightPanelOpen
9523 + ? "pointer-events-auto opacity-100"
9524 + : "pointer-events-none absolute right-full mr-1 opacity-0",
9525 )}
9526 inert={!rightPanelOpen}
9527 >
apps/web/src/components/chat/ChatHeader.tsx
+5 -3
@@ -492,9 +492,11 @@ export const ChatHeader = memo(function ChatHeader({
492 data-chat-header-actions
493 className={cn(
494 "flex shrink-0 items-center justify-end gap-2 @3xl/header-actions:gap-3",
495 - // Reserve two panel toggles plus their 4px gaps and 1px edge inset.
496 - // The page header adds 8px more right padding at sm.
497 - rightPanelOpen ? "pr-0" : "pr-18.25 sm:pr-14.25",
495 + // Reserve two panel toggles (32px, 28px at sm) with their 4px gap and 1px edge inset,
496 + // plus the same gap the actions keep between themselves (gap-2, gap-3 at @3xl) so the
497 + // terminal toggle does not sit against the last action. The page header adds 8px more
498 + // right padding at sm.
499 + rightPanelOpen ? "pr-0" : "pr-19.25 sm:pr-15.25 @3xl/header-actions:pr-16.25",
500 "[[data-panel-animations=true]_&]:motion-safe:transition-[padding-right] [[data-panel-animations=true]_&]:motion-safe:duration-(--panel-animation-duration) [[data-panel-animations=true]_&]:motion-safe:ease-out",
501 )}
502 >