Skip to content

Commit 2bb299d

Browse files
authored
tui: improve responsive layout by hiding header/footer when sidebar is visible (#7365)
1 parent 9930ac6 commit 2bb299d

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

  • packages/opencode/src/cli/cmd/tui/routes/session

‎packages/opencode/src/cli/cmd/tui/routes/session/index.tsx‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -887,7 +887,7 @@ export function Session() {
887887
<boxflexDirection="row">
888888
<boxflexGrow={1}paddingBottom={1}paddingTop={1}paddingLeft={2}paddingRight={2}gap={1}>
889889
<Showwhen={session()}>
890-
<Showwhen={!sidebarVisible()}>
890+
<Showwhen={!sidebarVisible()||!wide()}>
891891
<Header/>
892892
</Show>
893893
<scrollbox
@@ -1028,9 +1028,6 @@ export function Session() {
10281028
sessionID={route.sessionID}
10291029
/>
10301030
</box>
1031-
<Showwhen={!sidebarVisible()}>
1032-
<Footer/>
1033-
</Show>
10341031
</Show>
10351032
<Toast/>
10361033
</box>

0 commit comments

Comments
 (0)