Skip to content

Commit dc2ae9a

Browse files
authored
Merge pull request #1491 from silvin-lubecki/fix/horizontal-sidebar-width
fix(tui): use innerWidth for horizontal sidebar
2 parents 14ed51c + 370cb5b commit dc2ae9a

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)