Skip to content

Commit f5131b6

Browse files
committed
cap only the selected tab at the row width
1 parent ad9234d commit f5131b6

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

‎src/browser/features/RightSidebar/RightSidebarTabStrip.tsx‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,11 @@ const SortableTab: React.FC<{
8888
const sortableOnKeyDown = listeners?.onKeyDown;
8989

9090
return (
91-
// Capped at the row's width, so a tab never shows cut off at the row's end when the row is
92-
// narrower than the tab (a 300 px sidebar under the window-controls inset, #7103): its label
93-
// truncates and its X stays in view.
94-
<div className="relative max-w-full shrink-0" style={style}>
91+
// The selected tab is capped at the row's width, so it never shows cut off at the row's end
92+
// when the row is narrower than the tab (a 300 px sidebar under the window-controls inset,
93+
// #7103): its label truncates and its X stays in view. Only the selected one: a capped terminal
94+
// tab is mostly its pop-out and close buttons, so a click on an unselected one would hit them.
95+
<div className={cn("relative shrink-0", { "max-w-full": item.selected })} style={style}>
9596
<Tooltip>
9697
<TooltipTrigger asChild>
9798
<div

0 commit comments

Comments
 (0)