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

This commit is contained in:
Igor Makowski authored and GitHub committed 2026-10-02 00:33:36 -03:00
1 parent fa6262db31
commit 20012ebd80
2 files changed
+11 -4

No files matched your search

+6 -1
View File
@@ -9516,7 +9516,12 @@ export default function ChatView(props: ChatViewProps) {
"flex shrink-0",
panelAnimationsActive &&
"motion-safe:transition-opacity motion-safe:duration-(--panel-animation-duration) motion-safe:ease-out",
rightPanelOpen ? "pointer-events-auto opacity-100" : "pointer-events-none opacity-0",
// Closed, the control leaves the flex flow so the cluster is only as wide as the two
// toggles the header reserves room for; anchored to the cluster's left edge, it fades
// out where it stood rather than over the terminal toggle.
rightPanelOpen
? "pointer-events-auto opacity-100"
: "pointer-events-none absolute right-full mr-1 opacity-0",
)}
inert={!rightPanelOpen}
>
+5 -3
View File
@@ -492,9 +492,11 @@ export const ChatHeader = memo(function ChatHeader({
data-chat-header-actions
className={cn(
"flex shrink-0 items-center justify-end gap-2 @3xl/header-actions:gap-3",
// Reserve two panel toggles plus their 4px gaps and 1px edge inset.
// The page header adds 8px more right padding at sm.
rightPanelOpen ? "pr-0" : "pr-18.25 sm:pr-14.25",
// Reserve two panel toggles (32px, 28px at sm) with their 4px gap and 1px edge inset,
// plus the same gap the actions keep between themselves (gap-2, gap-3 at @3xl) so the
// terminal toggle does not sit against the last action. The page header adds 8px more
// right padding at sm.
rightPanelOpen ? "pr-0" : "pr-19.25 sm:pr-15.25 @3xl/header-actions:pr-16.25",
"[[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",
)}
>