From f27f5460223ea98f91ef41b826218d1de882c3e8 Mon Sep 17 00:00:00 2001 From: Andrey Nering Date: Thu, 15 Jan 2026 14:58:23 -0300 Subject: [PATCH] fix: address double vertical margins between sections Co-authored-by: Christian Rocha --- internal/ui/dialog/oauth.go | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/internal/ui/dialog/oauth.go b/internal/ui/dialog/oauth.go index 5d4a16cc409ab8d0515381cf7cbca41ae332c5cc..96ea4ee81cf35627926fe920b5ca2680ef9b67af 100644 --- a/internal/ui/dialog/oauth.go +++ b/internal/ui/dialog/oauth.go @@ -240,7 +240,7 @@ func (m *OAuth) innerDialogContent() string { case OAuthStateDisplay: instructions := lipgloss.NewStyle(). - Margin(1). + Margin(0, 1). Width(m.width - 2). Render( whiteStyle.Render("Press ") + @@ -253,7 +253,7 @@ func (m *OAuth) innerDialogContent() string { Height(7). Align(lipgloss.Center, lipgloss.Center). Background(t.BgBaseLighter). - Margin(1). + Margin(0, 1). Render( lipgloss.NewStyle(). Bold(true). @@ -268,7 +268,7 @@ func (m *OAuth) innerDialogContent() string { Render("Browser not opening? Refer to\n" + link) waiting := lipgloss.NewStyle(). - Margin(1, 1). + Margin(0, 1). Width(m.width - 2). Render( greenStyle.Render(m.spinner.View()) + mutedStyle.Render("Verifying..."), @@ -276,10 +276,15 @@ func (m *OAuth) innerDialogContent() string { return lipgloss.JoinVertical( lipgloss.Left, + "", instructions, + "", codeBox, + "", url, + "", waiting, + "", ) case OAuthStateSuccess: