mirror of
https://github.com/aljazceru/opencode.git
synced 2025-12-22 18:24:21 +01:00
fix(tui): restructure Sidebar component to be scrollable (#3946)
This commit is contained in:
@@ -40,7 +40,8 @@ export function Sidebar(props: { sessionID: string }) {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<Show when={session()}>
|
<Show when={session()}>
|
||||||
<box flexShrink={0} gap={1} width={40}>
|
<scrollbox width={40}>
|
||||||
|
<box flexShrink={0} gap={1} paddingRight={1}>
|
||||||
<box>
|
<box>
|
||||||
<text fg={theme.text}>
|
<text fg={theme.text}>
|
||||||
<b>{session().title}</b>
|
<b>{session().title}</b>
|
||||||
@@ -170,6 +171,7 @@ export function Sidebar(props: { sessionID: string }) {
|
|||||||
</box>
|
</box>
|
||||||
</Show>
|
</Show>
|
||||||
</box>
|
</box>
|
||||||
|
</scrollbox>
|
||||||
</Show>
|
</Show>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user