Skip to content

Commit 398e526

Browse files
sergiiopmclaude
andauthored
fix(shell): draw active tab underline as a straight line (#8)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent 709bed6 commit 398e526

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

‎src/components/SheetTabs.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ function SheetTab({ sheet, active, renaming, dragging, onPointerDown, onPointerM
200200
className={cn(
201201
"relative flex h-7 max-w-48 shrink-0 cursor-default select-none items-center px-4 text-xs",
202202
active
203-
? "-mt-px rounded-b-md border border-t-0 border-border bg-background font-medium text-brand shadow-[inset_0_-2px_0_var(--brand)]"
203+
? "-mt-px rounded-b-md border border-t-0 border-border bg-background font-medium text-brand after:absolute after:inset-x-1.5 after:bottom-0 after:h-0.5 after:bg-brand"
204204
: "text-muted-foreground hover:bg-accent/60 hover:text-foreground",
205205
dragging && "opacity-60",
206206
)}

‎src/components/Toolbar.tsx‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -681,8 +681,9 @@ export function Toolbar() {
681681
onMouseDown={(event) => event.preventDefault()}
682682
onClick={() => setTab(item.id)}
683683
className={cn(
684-
"h-7 rounded-md px-2.5 text-xs text-muted-foreground hover:bg-accent hover:text-foreground",
685-
tab === item.id && "font-medium text-brand shadow-[inset_0_-2px_0_var(--brand)]",
684+
"relative h-7 rounded-md px-2.5 text-xs text-muted-foreground hover:bg-accent hover:text-foreground",
685+
tab === item.id &&
686+
"font-medium text-brand after:absolute after:inset-x-1.5 after:bottom-0 after:h-0.5 after:bg-brand",
686687
)}
687688
>
688689
{item.label}

0 commit comments

Comments
 (0)