Skip to content
TypeScript

fix(web): right panel's tab bar no longer slides under the title bar controls (#26233)

Claudesaul083c9039505f
diff --git a/apps/web/src/components/preview/PreviewPanelShell.tsx b/apps/web/src/components/preview/PreviewPanelShell.tsx
index 2a3783cab8b..9afe2882b09 100644
--- a/apps/web/src/components/preview/PreviewPanelShell.tsx
+++ b/apps/web/src/components/preview/PreviewPanelShell.tsx
@@ -150,9 +150,20 @@ function PreviewPanelShellFrame(
data-preview-panel-maximized={maximized ? "true" : "false"}
>
{isInline && !maximized ? <RightPanelResizeHandle handlers={handlers} /> : null}
- <div className={cn("h-full min-h-0 w-full", collapsible && "overflow-clip")}>
+ {/* Content stays pinned to the right edge, so closing uncovers the chat
+ instead of sliding the tab bar under the title bar controls. */}
+ <div
+ className={cn(
+ "h-full min-h-0 w-full",
+ collapsible && "overflow-clip",
+ collapsible && !maximized && "flex justify-end",
+ )}
+ >
<div
- className="flex h-full min-h-0 min-w-0 flex-col"
+ className={cn(
+ "flex h-full min-h-0 min-w-0 flex-col",
+ collapsible && !maximized && "shrink-0",
+ )}
style={
collapsible && !maximized
? { width: `calc(var(${RESIZABLE_WIDTH_PROPERTY}) - 1px)` }