chore(tui): visual polish — detail sections, column headers, alert detail #37

Merged
lerko merged 20 commits from chore/ux-polish into main 2026-05-28 20:40:29 +00:00
2 changed files with 6 additions and 2 deletions
Showing only changes of commit 2569a252ff - Show all commits
+4
View File
@@ -439,6 +439,10 @@ func (m Model) computeLayout() tableLayout {
widths[i] = w widths[i] = w
} }
if surplus > 0 {
widths[6] += surplus
}
return tableLayout{ return tableLayout{
nameW: nameW, nameW: nameW,
sparkW: sparkW, sparkW: sparkW,
+2 -2
View File
@@ -51,7 +51,7 @@ func (m Model) renderTable(headers []string, items int, buildRows func(start, en
style = tableSelectedStyle.Foreground(s.GetForeground()) style = tableSelectedStyle.Foreground(s.GetForeground())
} }
if col < len(colWidths) && colWidths[col] > 0 { if col < len(colWidths) && colWidths[col] > 0 {
style = style.Width(colWidths[col]) style = style.Width(colWidths[col]).MaxWidth(colWidths[col])
} }
return style return style
} }
@@ -64,7 +64,7 @@ func (m Model) renderTable(headers []string, items int, buildRows func(start, en
base = tableSelectedStyle base = tableSelectedStyle
} }
if col < len(colWidths) && colWidths[col] > 0 { if col < len(colWidths) && colWidths[col] > 0 {
base = base.Width(colWidths[col]) base = base.Width(colWidths[col]).MaxWidth(colWidths[col])
} }
return base return base
}) })