From f3f7e4d30e2b0b5fc26cdca256bb0a763e7c6bcc Mon Sep 17 00:00:00 2001 From: Christian Rocha Date: Wed, 2 Jul 2025 15:27:45 -0400 Subject: [PATCH] chore(lint): pull out magic number --- internal/tui/components/chat/splash/splash.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/tui/components/chat/splash/splash.go b/internal/tui/components/chat/splash/splash.go index 95ca11c93d7fdbac4d0bbc2a8d20f355fe1b9ef7..efb7b6a26fd7027fa1e3d94de5457d56bcb73312 100644 --- a/internal/tui/components/chat/splash/splash.go +++ b/internal/tui/components/chat/splash/splash.go @@ -67,13 +67,14 @@ func (s *splashCmp) View() tea.View { func (s *splashCmp) logoBlock() string { t := styles.CurrentTheme() + const padding = 2 return logo.Render(version.Version, false, logo.Opts{ FieldColor: t.Primary, TitleColorA: t.Secondary, TitleColorB: t.Primary, CharmColor: t.Secondary, VersionColor: t.Primary, - Width: s.width - 2, // -2 for padding + Width: s.width - padding, }) }