From 2ad5e85c729b4a32c4c49584e076ac9f6ce6fa60 Mon Sep 17 00:00:00 2001 From: T Date: Thu, 19 Feb 2026 19:42:22 -0700 Subject: re-skin --- internal/tui/modal.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'internal/tui/modal.go') diff --git a/internal/tui/modal.go b/internal/tui/modal.go index b614d04..0e6c517 100644 --- a/internal/tui/modal.go +++ b/internal/tui/modal.go @@ -78,7 +78,7 @@ func (m *ModalBoxModel) HandleKeyPress(msg tea.KeyMsg) tea.Cmd { return cmd } -func (m ModalBoxModel) RenderCenteredOver(mainContent string, app AppModel) string { +func (m ModalBoxModel) RenderCenteredOver(mainContent string, app AppModel, contentWidth int) string { if !m.Active { return mainContent } @@ -86,12 +86,12 @@ func (m ModalBoxModel) RenderCenteredOver(mainContent string, app AppModel) stri modalContent := m.Render() base := lipgloss.NewLayer(mainContent) - overlayStyle := lipgloss.NewStyle().Border(lipgloss.RoundedBorder()).BorderForeground(lipgloss.Color("62")).Padding(2, 4) + overlayStyle := lipgloss.NewStyle().Border(lipgloss.RoundedBorder()).BorderForeground(colorAccent).Padding(2, 4) overlay := lipgloss.NewLayer(overlayStyle.Render(modalContent)) overlayWidth := overlay.GetWidth() overlayHeight := overlay.GetHeight() - overlayLeft := (app.width - overlayWidth) / 2 + overlayLeft := (contentWidth - overlayWidth) / 2 overlayTop := (app.height - overlayHeight) / 2 canvas := lipgloss.NewCanvas( -- cgit v1.2.3