Skip to content

Commit 906329e

Browse files
committed
fix(web): maximize button no longer jumps left of the thread details toggle when the right panel closes
1 parent d53873b commit 906329e

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
@@ -192,9 +192,11 @@ export function WorkspaceTitlebarControls(props: {
192192
{props.showMaximizeControl ? (
193193
<span
194194
aria-hidden={!props.rightPanelOpen}
195+
// Fading out on close would show it beside the thread details toggle that replaces it.
195196
className={cn(
196197
"flex shrink-0",
197-
props.animationsActive &&
198+
props.rightPanelOpen &&
199+
props.animationsActive &&
198200
"motion-safe:transition-opacity motion-safe:duration-(--panel-animation-duration) motion-safe:ease-out",
199201
props.rightPanelOpen
200202
? "pointer-events-auto opacity-100"

0 commit comments

Comments
 (0)