Selaa lähdekoodia

fix(tui): style scrollbox for permission and sidebar (#12752)

Anton Volkov 1 kuukausi sitten
vanhempi
sitoutus
5512231ca8

+ 9 - 1
packages/opencode/src/cli/cmd/tui/routes/session/permission.tsx

@@ -65,7 +65,15 @@ function EditBody(props: { request: PermissionRequest }) {
   return (
   return (
     <box flexDirection="column" gap={1}>
     <box flexDirection="column" gap={1}>
       <Show when={diff()}>
       <Show when={diff()}>
-        <scrollbox height="100%">
+        <scrollbox
+          height="100%"
+          verticalScrollbarOptions={{
+            trackOptions: {
+              backgroundColor: theme.background,
+              foregroundColor: theme.borderActive,
+            },
+          }}
+        >
           <diff
           <diff
             diff={diff()}
             diff={diff()}
             view={view()}
             view={view()}

+ 9 - 1
packages/opencode/src/cli/cmd/tui/routes/session/sidebar.tsx

@@ -80,7 +80,15 @@ export function Sidebar(props: { sessionID: string; overlay?: boolean }) {
         paddingRight={2}
         paddingRight={2}
         position={props.overlay ? "absolute" : "relative"}
         position={props.overlay ? "absolute" : "relative"}
       >
       >
-        <scrollbox flexGrow={1}>
+        <scrollbox
+          flexGrow={1}
+          verticalScrollbarOptions={{
+            trackOptions: {
+              backgroundColor: theme.background,
+              foregroundColor: theme.borderActive,
+            },
+          }}
+        >
           <box flexShrink={0} gap={1} paddingRight={1}>
           <box flexShrink={0} gap={1} paddingRight={1}>
             <box paddingRight={1}>
             <box paddingRight={1}>
               <text fg={theme.text}>
               <text fg={theme.text}>