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 (
|
||||
<Show when={session()}>
|
||||
<box flexShrink={0} gap={1} width={40}>
|
||||
<scrollbox width={40}>
|
||||
<box flexShrink={0} gap={1} paddingRight={1}>
|
||||
<box>
|
||||
<text fg={theme.text}>
|
||||
<b>{session().title}</b>
|
||||
@@ -170,6 +171,7 @@ export function Sidebar(props: { sessionID: string }) {
|
||||
</box>
|
||||
</Show>
|
||||
</box>
|
||||
</scrollbox>
|
||||
</Show>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user