Skip to content

Commit 083c903

Browse files
authored
fix(web): right panel's tab bar no longer slides under the title bar controls (#26233)
1 parent 3dbc157 commit 083c903

1 file changed

Lines changed: 13 additions & 2 deletions

File tree

‎apps/web/src/components/preview/PreviewPanelShell.tsx‎

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,9 +150,20 @@ function PreviewPanelShellFrame(
150150
data-preview-panel-maximized={maximized ? "true" : "false"}
151151
>
152152
{isInline && !maximized ? <RightPanelResizeHandle handlers={handlers} /> : null}
153-
<div className={cn("h-full min-h-0 w-full", collapsible && "overflow-clip")}>
153+
{/* Content stays pinned to the right edge, so closing uncovers the chat
154+
instead of sliding the tab bar under the title bar controls. */}
155+
<div
156+
className={cn(
157+
"h-full min-h-0 w-full",
158+
collapsible && "overflow-clip",
159+
collapsible && !maximized && "flex justify-end",
160+
)}
161+
>
154162
<div
155-
className="flex h-full min-h-0 min-w-0 flex-col"
163+
className={cn(
164+
"flex h-full min-h-0 min-w-0 flex-col",
165+
collapsible && !maximized && "shrink-0",
166+
)}
156167
style={
157168
collapsible && !maximized
158169
? { width: `calc(var(${RESIZABLE_WIDTH_PROPERTY}) - 1px)` }

0 commit comments

Comments
 (0)