fix(tui): style scrollbox for permission and sidebar (#12752)
This commit is contained in:
parent
bad394cd49
commit
5512231ca8
2 changed files with 18 additions and 2 deletions
|
|
@ -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()}
|
||||||
|
|
|
||||||
|
|
@ -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}>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue