Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 additions & 2 deletions apps/web/src/components/preview/PreviewPanelShell.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -167,9 +167,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)` }
Expand Down
Loading