tui: fix session tab alignment in compact view to prevent vertical overflow
This commit is contained in:
@@ -37,8 +37,8 @@ export function SortableTab(props: { tab: string; onTabClose: (tab: string) => v
|
|||||||
return <FileVisual path={value} />
|
return <FileVisual path={value} />
|
||||||
})
|
})
|
||||||
return (
|
return (
|
||||||
<div use:sortable classList={{ "h-full": true, "opacity-0": sortable.isActiveDraggable }}>
|
<div use:sortable class="h-full flex items-center" classList={{ "opacity-0": sortable.isActiveDraggable }}>
|
||||||
<div class="relative h-full">
|
<div class="relative">
|
||||||
<Tabs.Trigger
|
<Tabs.Trigger
|
||||||
value={props.tab}
|
value={props.tab}
|
||||||
closeButton={
|
closeButton={
|
||||||
|
|||||||
@@ -171,7 +171,7 @@
|
|||||||
|
|
||||||
[data-slot="tabs-trigger-wrapper"] {
|
[data-slot="tabs-trigger-wrapper"] {
|
||||||
height: var(--tabs-compact-pill-height);
|
height: var(--tabs-compact-pill-height);
|
||||||
margin-block: calc((var(--tabs-bar-height) - var(--tabs-compact-pill-height)) / 2);
|
margin-block: 0;
|
||||||
max-width: 320px;
|
max-width: 320px;
|
||||||
padding-inline: var(--tabs-compact-pill-padding-x);
|
padding-inline: var(--tabs-compact-pill-padding-x);
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
|
|||||||
Reference in New Issue
Block a user