From c02cabdd93e3033eb76006a08afd6ee7f7655d41 Mon Sep 17 00:00:00 2001 From: Salastil <46979341+Salastil@users.noreply.github.com> Date: Sat, 22 Nov 2025 23:53:30 -0500 Subject: [PATCH] Constrain UI to 95 percent width --- internal/app.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/app.go b/internal/app.go index 264db0a..445a607 100644 --- a/internal/app.go +++ b/internal/app.go @@ -231,7 +231,7 @@ func (m Model) renderHelpPanel() string { Border(lipgloss.RoundedBorder()). BorderForeground(lipgloss.Color("#FA8072")). Padding(1, 2). - Width(int(float64(m.TerminalWidth) * 0.97)). + Width(int(float64(m.TerminalWidth) * 0.95)). Render(sb.String()) return panel @@ -248,7 +248,7 @@ func (m Model) renderDebugPanel() string { Border(lipgloss.RoundedBorder()). BorderForeground(lipgloss.Color("#FA8072")). Padding(1, 2). - Width(int(float64(m.TerminalWidth) * 0.97)). + Width(int(float64(m.TerminalWidth) * 0.95)). Render(header + "\n\n" + content) return panel @@ -271,7 +271,7 @@ func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd) { case tea.WindowSizeMsg: m.TerminalWidth = msg.Width usableHeight := int(float64(msg.Height) * 0.9) - totalAvailableWidth := int(float64(msg.Width) * 0.97) + totalAvailableWidth := int(float64(msg.Width) * 0.95) borderPadding := 4 totalBorderSpace := borderPadding * 3 availableWidth := totalAvailableWidth - totalBorderSpace