fix: sidebar footer stuff

pull/5968/head
Aiden Cline 2025-12-22 12:32:12 -06:00
parent 57cb05adab
commit f2620b253c
4 changed files with 11 additions and 4 deletions

BIN
1.png 100644

Binary file not shown.

After

Width:  |  Height:  |  Size: 315 KiB

BIN
2.png 100644

Binary file not shown.

After

Width:  |  Height:  |  Size: 242 KiB

View File

@ -136,7 +136,8 @@ export function Session() {
if (sidebar() === "auto" && wide()) return true
return false
})
const contentWidth = createMemo(() => dimensions().width - (sidebarVisible() ? 42 : 0) - 4)
const sidebarOverlay = createMemo(() => sidebarVisible() && !wide())
const contentWidth = createMemo(() => dimensions().width - (sidebarVisible() && !sidebarOverlay() ? 42 : 0) - 4)
const scrollAcceleration = createMemo(() => {
const tui = sync.data.config.tui
@ -883,7 +884,7 @@ export function Session() {
<box flexDirection="row">
<box flexGrow={1} paddingBottom={1} paddingTop={1} paddingLeft={2} paddingRight={2} gap={1}>
<Show when={session()}>
<Show when={!sidebarVisible()}>
<Show when={!sidebarVisible() || sidebarOverlay()}>
<Header />
</Show>
<scrollbox
@ -1013,15 +1014,20 @@ export function Session() {
sessionID={route.sessionID}
/>
</box>
<Show when={!sidebarVisible() && tall()}>
<Show when={(!sidebarVisible() || sidebarOverlay()) && tall()}>
<Footer />
</Show>
</Show>
<Toast />
</box>
<Show when={sidebarVisible()}>
<Show when={sidebarVisible() && !sidebarOverlay()}>
<Sidebar sessionID={route.sessionID} />
</Show>
<Show when={sidebarOverlay()}>
<box position="absolute" right={0} top={0} height={dimensions().height} zIndex={100}>
<Sidebar sessionID={route.sessionID} />
</box>
</Show>
</box>
</context.Provider>
)

View File

@ -62,6 +62,7 @@ export function Sidebar(props: { sessionID: string }) {
<box
backgroundColor={theme.backgroundPanel}
width={42}
height="100%"
paddingTop={1}
paddingBottom={1}
paddingLeft={2}