diff options
| author | adamdottv <[email protected]> | 2025-06-19 11:41:23 -0500 |
|---|---|---|
| committer | adamdottv <[email protected]> | 2025-06-19 11:41:30 -0500 |
| commit | 4cdc86612cc100afa8775432108c6a48a374d991 (patch) | |
| tree | ffd93afbefc1d6511e83caf7879bbb5f1fda91f9 /packages/tui/internal/components/modal | |
| parent | f1f3f8d12c2cbf2e8f96e7b9d99cdc196e5a78a9 (diff) | |
| download | opencode-4cdc86612cc100afa8775432108c6a48a374d991.tar.gz opencode-4cdc86612cc100afa8775432108c6a48a374d991.zip | |
fix(tui): overlay border backgrounds
Diffstat (limited to 'packages/tui/internal/components/modal')
| -rw-r--r-- | packages/tui/internal/components/modal/modal.go | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/packages/tui/internal/components/modal/modal.go b/packages/tui/internal/components/modal/modal.go index b2b59a4b2..afb67a959 100644 --- a/packages/tui/internal/components/modal/modal.go +++ b/packages/tui/internal/components/modal/modal.go @@ -100,9 +100,9 @@ func (m *Modal) Render(contentView string, background string) string { if m.title != "" { titleStyle := baseStyle. Foreground(t.Primary()). - Bold(true) + Bold(true). + Padding(0, 1) - // titleView := titleStyle.Render(m.title) escStyle := baseStyle.Foreground(t.TextMuted()).Bold(false) escText := escStyle.Render("esc") @@ -123,14 +123,7 @@ func (m *Modal) Render(contentView string, background string) string { PaddingTop(1). PaddingBottom(1). PaddingLeft(2). - PaddingRight(2). - BorderStyle(lipgloss.ThickBorder()). - BorderLeft(true). - BorderRight(true). - BorderLeftForeground(t.BackgroundSubtle()). - BorderLeftBackground(t.Background()). - BorderRightForeground(t.BackgroundSubtle()). - BorderRightBackground(t.Background()) + PaddingRight(2) modalView := modalStyle. Width(outerWidth). @@ -150,5 +143,7 @@ func (m *Modal) Render(contentView string, background string) string { row, modalView, background, + layout.WithOverlayBorder(), + layout.WithOverlayBorderColor(t.Primary()), ) } |
