feat: implement dynamic table sizing based on available terminal space

This commit is contained in:
2025-09-03 09:58:53 +02:00
parent 959c084466
commit 8f2837db78
4 changed files with 125 additions and 12 deletions

View File

@@ -31,6 +31,10 @@ func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
m.styles = NewStyles(m.width)
m.ready = true
// Update table height and columns based on new window size
m.updateTableHeight()
m.updateTableColumns()
// Update sub-forms if they exist
if m.addForm != nil {
m.addForm.width = m.width