From 47fd451f65a898b7522f061ed363507c060cd0ac Mon Sep 17 00:00:00 2001 From: Yuqing Yang Date: Mon, 31 Aug 2026 02:59:26 +0000 Subject: [PATCH] fix(web): keep preview tab actions reachable Keep close controls visible on every preview tab and the one-way pin action visible on transient tabs. Reserve action width and let crowded tab strips scroll instead of shrinking controls. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .../Panels/PreviewWorkspace/PreviewTab.tsx | 10 ++----- .../PreviewWorkspace.test.tsx | 28 +++++++++++++------ docs/architecture/preview-workspace.md | 2 +- 3 files changed, 24 insertions(+), 16 deletions(-) diff --git a/apps/web/src/components/Panels/PreviewWorkspace/PreviewTab.tsx b/apps/web/src/components/Panels/PreviewWorkspace/PreviewTab.tsx index 5b781a77..eedc3a25 100644 --- a/apps/web/src/components/Panels/PreviewWorkspace/PreviewTab.tsx +++ b/apps/web/src/components/Panels/PreviewWorkspace/PreviewTab.tsx @@ -161,7 +161,7 @@ export function PreviewTab({ zIndex: isDragging ? 1 : undefined, }} className={cn( - 'group relative flex h-9 w-fit max-w-48 min-w-20 flex-[0_1_auto] cursor-pointer items-center gap-1.5 px-2.5 text-sm', + 'group relative flex h-9 w-fit max-w-48 min-w-20 flex-none cursor-pointer items-center gap-1.5 px-2.5 text-sm', 'border-edge-default border-r', 'focus-visible:outline-info focus-visible:outline-1 focus-visible:-outline-offset-2', isActive @@ -186,7 +186,7 @@ export function PreviewTab({
{tab.transient && (