From 3196bb37d64f6c4ed8068029a0a5b70812f958ac Mon Sep 17 00:00:00 2001 From: Ayman Bagabas Date: Thu, 17 Jul 2025 15:31:33 -0400 Subject: [PATCH] fix(tui): splash: re-render logo when screen size changes --- 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 2a6e3be3aa498fd23dfe06f663dd8c8859e6dbef..163e8be44765404ce2f1f92e9371c2dcd6f67dd0 100644 --- a/internal/tui/components/chat/splash/splash.go +++ b/internal/tui/components/chat/splash/splash.go @@ -133,10 +133,11 @@ func (s *splashCmp) Init() tea.Cmd { // SetSize implements SplashPage. func (s *splashCmp) SetSize(width int, height int) tea.Cmd { + wasSmallScreen := s.isSmallScreen() rerenderLogo := width != s.width s.height = height s.width = width - if rerenderLogo { + if rerenderLogo || wasSmallScreen != s.isSmallScreen() { s.logoRendered = s.logoBlock() } // remove padding, logo height, gap, title space