Skip to content

Commit c95febb

Browse files
committed
tui: fix session tab alignment in compact view to prevent vertical overflow
1 parent 9736fce commit c95febb

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

packages/app/src/components/session/session-sortable-tab.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ export function SortableTab(props: { tab: string; onTabClose: (tab: string) => v
3737
return <FileVisual path={value} />
3838
})
3939
return (
40-
<div use:sortable classList={{ "h-full": true, "opacity-0": sortable.isActiveDraggable }}>
41-
<div class="relative h-full">
40+
<div use:sortable class="h-full flex items-center" classList={{ "opacity-0": sortable.isActiveDraggable }}>
41+
<div class="relative">
4242
<Tabs.Trigger
4343
value={props.tab}
4444
closeButton={

packages/ui/src/components/tabs.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@
171171

172172
[data-slot="tabs-trigger-wrapper"] {
173173
height: var(--tabs-compact-pill-height);
174-
margin-block: calc((var(--tabs-bar-height) - var(--tabs-compact-pill-height)) / 2);
174+
margin-block: 0;
175175
max-width: 320px;
176176
padding-inline: var(--tabs-compact-pill-padding-x);
177177
box-sizing: border-box;

0 commit comments

Comments
 (0)