@@ -134,10 +134,8 @@ func (s *splashCmp) Init() tea.Cmd {
134// SetSize implements SplashPage.
134// SetSize implements SplashPage.
135func (s *splashCmp) SetSize(width int, height int) tea.Cmd {
135func (s *splashCmp) SetSize(width int, height int) tea.Cmd {
136 s.height = height
136 s.height = height
137− if width != s.width {
137+ s.width = width
139− s.logoRendered = s.logoBlock()
138+ s.logoRendered = s.logoBlock()
141 // remove padding, logo height, gap, title space
139 // remove padding, logo height, gap, title space
142 s.listHeight = s.height - lipgloss.Height(s.logoRendered) - (SplashScreenPaddingY * 2) - s.logoGap() - 2
140 s.listHeight = s.height - lipgloss.Height(s.logoRendered) - (SplashScreenPaddingY * 2) - s.logoGap() - 2
143 listWidth := min(60, width)
141 listWidth := min(60, width)
@@ -467,14 +465,25 @@ func (s *splashCmp) infoSection() string {
468func (s *splashCmp) logoBlock() string {
466func (s *splashCmp) logoBlock() string {
469 t := styles.CurrentTheme()
467 t := styles.CurrentTheme()
470− return t.S().Base.Padding(0, 2).Width(s.width).Render(
468+ logoStyle := t.S().Base.Padding(0, 2).Width(s.width)
469+ if s.width < 40 || s.height < 20 {
470+ // If the width is too small, render a smaller version of the logo
471+ // NOTE: 20 is not correct because [splashCmp.height] is not the
472+ // *actual* window height, instead, it is the height of the splash
473+ // component and that depends on other variables like compact mode and
474+ // the height of the editor.
475+ return logoStyle.Render(
476+ logo.SmallRender(s.width - logoStyle.GetHorizontalFrameSize()),
479+ return logoStyle.Render(
471 logo.Render(version.Version, false, logo.Opts{
480 logo.Render(version.Version, false, logo.Opts{
472 FieldColor: t.Primary,
481 FieldColor: t.Primary,
473 TitleColorA: t.Secondary,
482 TitleColorA: t.Secondary,
474 TitleColorB: t.Primary,
483 TitleColorB: t.Primary,
475 CharmColor: t.Secondary,
484 CharmColor: t.Secondary,
476 VersionColor: t.Primary,
485 VersionColor: t.Primary,
477− Width: s.width - 4,
486+ Width: s.width - logoStyle.GetHorizontalFrameSize(),