janitorial work

This commit is contained in:
2026-02-07 15:12:34 -05:00
parent 7eb49ac1c7
commit 73aa211229
17 changed files with 38 additions and 76 deletions

View File

@@ -18,7 +18,14 @@ export const tabs: TabDefinition[] = [
export function TabNavigation(props: TabNavigationProps) {
const { theme } = useTheme();
return (
<box style={{ flexDirection: "column", gap: 1, width: 20 }}>
<box
backgroundColor={theme.surface}
style={{
flexDirection: "column",
width: 10,
flexGrow: 1,
}}
>
<For each={tabs}>
{(tab) => (
<box
@@ -26,16 +33,17 @@ export function TabNavigation(props: TabNavigationProps) {
borderColor={theme.border}
onMouseDown={() => props.onTabSelect(tab.id)}
style={{
padding: 1,
paddingLeft: 2,
backgroundColor:
tab.id == props.activeTab ? theme.primary : "transparent",
}}
>
<text style={{ fg: theme.text }}>
{tab.id == props.activeTab ? "[" : " "}
<text
style={{
fg: tab.id == props.activeTab ? "white" : theme.text,
alignSelf: "center",
}}
>
{tab.label}
{tab.id == props.activeTab ? "]" : " "}
</text>
</box>
)}