| ... | @@ -492,9 +492,11 @@ export const ChatHeader = memo(function ChatHeader({ | ... | @@ -492,9 +492,11 @@ export const ChatHeader = memo(function ChatHeader({ |
| 492 | data-chat-header-actions | 492 | data-chat-header-actions |
| 493 | className={cn( | 493 | className={cn( |
| 494 | "flex shrink-0 items-center justify-end gap-2 @3xl/header-actions:gap-3", | 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. | 495 | // Reserve two panel toggles (32px, 28px at sm) with their 4px gap and 1px edge inset, |
| 496 | // The page header adds 8px more right padding at sm. | 496 | // plus the same gap the actions keep between themselves (gap-2, gap-3 at @3xl) so the |
| 497 | rightPanelOpen ? "pr-0" : "pr-18.25 sm:pr-14.25", | 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", |
| 498 | "[[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", | 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", |
| 499 | )} | 501 | )} |
| 500 | > | 502 | > |