fix(ui): scope filetree pill tabs styling

This commit is contained in:
David Hill
2026-01-26 18:09:02 +00:00
parent d9a61cd94c
commit 0dcb850a7a
2 changed files with 28 additions and 1 deletions

View File

@@ -2627,7 +2627,13 @@ export default function Page() {
<Show when={layout.fileTree.opened()}>
<div class="relative shrink-0 h-full" style={{ width: `${layout.fileTree.width()}px` }}>
<div class="h-full border-l border-border-weak-base flex flex-col overflow-hidden">
<Tabs variant="pill" value={fileTreeTab()} onChange={setFileTreeTabValue} class="h-full">
<Tabs
variant="pill"
value={fileTreeTab()}
onChange={setFileTreeTabValue}
class="h-full"
data-scope="filetree"
>
<Tabs.List>
<Tabs.Trigger value="changes" class="flex-1" classes={{ button: "w-full" }}>
{reviewCount()}{" "}

View File

@@ -264,6 +264,27 @@
}
}
&[data-variant="pill"][data-orientation="horizontal"][data-scope="filetree"] {
[data-slot="tabs-list"] {
padding: 12px;
gap: 8px;
}
[data-slot="tabs-trigger-wrapper"] {
height: 26px;
border-radius: 6px;
color: var(--text-weak);
&:not(:has([data-selected])):hover:not(:disabled) {
color: var(--text-base);
}
&:has([data-selected]) {
color: var(--text-strong);
}
}
}
&[data-orientation="vertical"] {
flex-direction: row;