Skip to content

Commit a8f9295

Browse files
committed
fix(tui): fix catalog panel layout overflow and remove trailing newline in status bar
1 parent eec1654 commit a8f9295

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

go/tui/view.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ func (m *TuiModel) renderCatalogPanel(w, h int, _ bool) string {
278278
}
279279

280280
// Calculate pagination heights
281-
visibleRows := h - 5 // height minus tabs, spaces, detail pane
281+
visibleRows := h - 6 // height minus tabs, spaces, detail pane separator and details row
282282
if visibleRows < 1 {
283283
visibleRows = 1
284284
}
@@ -317,7 +317,7 @@ func (m *TuiModel) renderCatalogPanel(w, h int, _ bool) string {
317317
}
318318

319319
// Pad empty space to keep layout stable
320-
for len(lines) < h-3 {
320+
for len(lines) < h-2 {
321321
lines = append(lines, "")
322322
}
323323

@@ -634,7 +634,7 @@ func (m *TuiModel) renderStatusBar(w int) string {
634634
)
635635
line2 := barStyle.Width(w).Render(strings.Join(shortcutParts, sep))
636636

637-
return "\n\n" + line1 + "\n" + line2 + "\n"
637+
return "\n\n\n" + line1 + "\n" + line2
638638
}
639639

640640
func (m *TuiModel) getActiveItems() []bridge.CatalogEntry {

0 commit comments

Comments
 (0)