Skip to content

Commit 6525e4c

Browse files
fix(web): maximize button no longer jumps when the right panel closes (#26232)
Co-authored-by: maria-rcks <[email protected]>
1 parent 1dacdb9 commit 6525e4c

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎apps/web/src/components/chat/PanelLayoutControls.tsx‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,9 +190,11 @@ export function WorkspaceTitlebarControls(props: {
190190
{props.showMaximizeControl ? (
191191
<span
192192
aria-hidden={!props.rightPanelOpen}
193+
// Fading out on close would show it beside the thread details toggle that replaces it.
193194
className={cn(
194195
"flex shrink-0",
195-
props.animationsActive &&
196+
props.rightPanelOpen &&
197+
props.animationsActive &&
196198
"motion-safe:transition-opacity motion-safe:duration-(--panel-animation-duration) motion-safe:ease-out",
197199
props.rightPanelOpen
198200
? "pointer-events-auto opacity-100"

0 commit comments

Comments
 (0)