on main help sign in
fix: tui: properly calculate quit dialog size
c891295Ayman Bagabas
internal/tui/components/dialog/quit.go+6−3
@@ -117,11 +117,14 @@ func (q *quitDialogCmp) View() string {
117 ),
117 ),
118 )
118 )
119
119
120+ quitDialogStyle := baseStyle.
120− return baseStyle.Padding(1, 2).
121+ Padding(1, 2).
121 Border(lipgloss.RoundedBorder()).
122 Border(lipgloss.RoundedBorder()).
122 BorderBackground(t.Background()).
123 BorderBackground(t.Background()).
123− BorderForeground(t.TextMuted()).
124+ BorderForeground(t.TextMuted())
125+
126+ return quitDialogStyle.
124− Width(lipgloss.Width(content) + 4).
127+ Width(lipgloss.Width(content) + quitDialogStyle.GetHorizontalFrameSize()).
125 Render(content)
128 Render(content)
126}
129}
127
130