Skip to content

Commit 379cf1b

Browse files
committed
fix(workbench): keep ArtifactPanel header buttons out from under the global chrome pills
The docked artifact panel's header action buttons (open-in-tab / download / close) sit at the panel's top-right — exactly where App.tsx's global floating chrome cluster (theme + i18n toggles, `absolute right-3 z-40`) renders. The cluster's higher stacking context covered the download and close buttons. Reserve the ~112px chrome lane on the header with `pr-28`, matching the existing convention used by KbList's header row and KbDetail's gear row, so the panel buttons always clear the pills. Claude-Session: https://claude.ai/code/session_01XMxbhmAkxxVV8CFWCZDBaG
1 parent efaf375 commit 379cf1b

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

frontend/src/components/ArtifactPanel.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,8 +222,11 @@ export default function ArtifactPanel({
222222
className="absolute left-0 top-0 z-10 h-full w-1.5 -translate-x-1/2 cursor-col-resize hover:bg-accent-brand/30"
223223
/>
224224

225-
{/* header */}
226-
<div className="shrink-0 h-12 flex items-center gap-2 px-3 border-b border-[hsl(var(--glass-border))]">
225+
{/* header — pr-28 reserves the global top-right chrome lane (theme + i18n
226+
pills in App.tsx, absolute right-3 z-40) so the panel's action buttons
227+
(open / download / close) never sit UNDER it. Same reserve convention
228+
as KbList's header row and KbDetail's gear row. */}
229+
<div className="shrink-0 h-12 flex items-center gap-2 pl-3 pr-28 border-b border-[hsl(var(--glass-border))]">
227230
<HeaderIcon className="w-4 h-4 text-accent-brand shrink-0" />
228231
<span className="min-w-0 truncate text-[13px] font-semibold text-foreground">
229232
{artifactLabel(active, t)}

0 commit comments

Comments
 (0)