diff options
| author | T <t@tjp.lol> | 2026-02-19 19:42:22 -0700 |
|---|---|---|
| committer | T <t@tjp.lol> | 2026-02-19 19:42:57 -0700 |
| commit | 2ad5e85c729b4a32c4c49584e076ac9f6ce6fa60 (patch) | |
| tree | c6aa5db061504406f40d904399af4fb01857a0a9 /internal/tui/modal.go | |
| parent | 7ba68d333bc20b5795ccfd3870546a05eee60470 (diff) | |
re-skin
Diffstat (limited to 'internal/tui/modal.go')
| -rw-r--r-- | internal/tui/modal.go | 6 |
1 files changed, 3 insertions, 3 deletions
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( |
