Skip to content

Commit 5512231

Browse files
authored
fix(tui): style scrollbox for permission and sidebar (anomalyco#12752)
1 parent bad394c commit 5512231

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

packages/opencode/src/cli/cmd/tui/routes/session/permission.tsx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,15 @@ function EditBody(props: { request: PermissionRequest }) {
6565
return (
6666
<box flexDirection="column" gap={1}>
6767
<Show when={diff()}>
68-
<scrollbox height="100%">
68+
<scrollbox
69+
height="100%"
70+
verticalScrollbarOptions={{
71+
trackOptions: {
72+
backgroundColor: theme.background,
73+
foregroundColor: theme.borderActive,
74+
},
75+
}}
76+
>
6977
<diff
7078
diff={diff()}
7179
view={view()}

packages/opencode/src/cli/cmd/tui/routes/session/sidebar.tsx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,15 @@ export function Sidebar(props: { sessionID: string; overlay?: boolean }) {
8080
paddingRight={2}
8181
position={props.overlay ? "absolute" : "relative"}
8282
>
83-
<scrollbox flexGrow={1}>
83+
<scrollbox
84+
flexGrow={1}
85+
verticalScrollbarOptions={{
86+
trackOptions: {
87+
backgroundColor: theme.background,
88+
foregroundColor: theme.borderActive,
89+
},
90+
}}
91+
>
8492
<box flexShrink={0} gap={1} paddingRight={1}>
8593
<box paddingRight={1}>
8694
<text fg={theme.text}>

0 commit comments

Comments
 (0)