Skip to content

Commit 370cb5b

Browse files
fix(tui): use innerWidth for horizontal sidebar
The horizontal sidebar received the full terminal width instead of innerWidth (minus app padding), causing content overflow on narrow terminals where the Context percentage would get truncated. Assisted-By: cagent
1 parent 14ed51c commit 370cb5b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pkg/tui/page/chat/chat.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,7 @@ func (p *chatPage) SetSize(width, height int) tea.Cmd {
555555
p.chatHeight = max(1, height-actualEditorHeight-horizontalSidebarHeight-2) // -1 for resize handle, -1 for empty line before status bar
556556
p.sidebar.SetMode(sidebar.ModeHorizontal)
557557
cmds = append(cmds,
558-
p.sidebar.SetSize(width, horizontalSidebarHeight),
558+
p.sidebar.SetSize(innerWidth, horizontalSidebarHeight),
559559
p.sidebar.SetPosition(styles.AppPaddingLeft, 0),
560560
p.messages.SetPosition(0, horizontalSidebarHeight),
561561
)

0 commit comments

Comments
 (0)