feat(tui): bordered modals, welcome state, and dynamic name width

- Delete confirmation wrapped in rounded border box with danger color
- Empty sites view shows styled welcome box with onboarding hint
- NAME column width scales with terminal width (13-40 chars)
This commit is contained in:
2026-05-16 12:56:09 -04:00
parent 3bc8e31b89
commit f2ea0dc758
2 changed files with 30 additions and 5 deletions
+6 -1
View File
@@ -551,7 +551,12 @@ func (m Model) View() string {
}
msg := dangerStyle.Render(fmt.Sprintf("Delete %s \"%s\"?", kind, m.deleteName))
hint := subtleStyle.Render("[y] Confirm [n] Cancel")
return lipgloss.NewStyle().Padding(2, 4).Render(msg + "\n\n" + hint)
box := lipgloss.NewStyle().
Border(lipgloss.RoundedBorder()).
BorderForeground(lipgloss.Color("#F25D94")).
Padding(1, 3).
Render(msg + "\n\n" + hint)
return lipgloss.NewStyle().Padding(2, 4).Render(box)
case stateFormSite, stateFormAlert, stateFormUser:
if m.huhForm != nil {
title := ""