fix(tui): limit sidebar height to match table, fix detail clipping
Log sidebar was rendering all lines regardless of table height. When detail panel was open and table shrank, the sidebar stayed tall, pushing the detail panel past MaxHeight (clipped to empty). Now sidebar accepts a maxLines parameter capped to table row count.
This commit is contained in:
@@ -18,8 +18,8 @@ func (m Model) viewDetailInline(width int) string {
|
||||
|
||||
var b strings.Builder
|
||||
|
||||
title := m.st.dangerStyle.Render("▶ " + site.Name)
|
||||
b.WriteString(title + "\n")
|
||||
title := m.st.titleStyle.Render(site.Name)
|
||||
b.WriteString(" " + title + "\n")
|
||||
|
||||
divW := width - 4
|
||||
if divW < 20 {
|
||||
|
||||
Reference in New Issue
Block a user