on main help sign in
fix: hide info box when the initialization message is shown
582eeb0Andrey Nering
internal/tui/components/chat/splash/splash.go+2−4
@@ -494,9 +494,7 @@ func (s *splashCmp) View() string {
494 })
494 })
495
495
496 buttons := lipgloss.JoinHorizontal(lipgloss.Left, yesButton, " ", noButton)
496 buttons := lipgloss.JoinHorizontal(lipgloss.Left, yesButton, " ", noButton)
497− infoSection := s.infoSection()
498−
499− remainingHeight := s.height - lipgloss.Height(s.logoRendered) - (SplashScreenPaddingY * 2) - lipgloss.Height(infoSection)
497+ remainingHeight := s.height - lipgloss.Height(s.logoRendered) - (SplashScreenPaddingY * 2)
500
498
501 initContent := t.S().Base.AlignVertical(lipgloss.Bottom).PaddingLeft(1).Height(remainingHeight).Render(
499 initContent := t.S().Base.AlignVertical(lipgloss.Bottom).PaddingLeft(1).Height(remainingHeight).Render(
502 lipgloss.JoinVertical(
500 lipgloss.JoinVertical(
@@ -510,7 +508,7 @@ func (s *splashCmp) View() string {
510 content = lipgloss.JoinVertical(
508 content = lipgloss.JoinVertical(
511 lipgloss.Left,
509 lipgloss.Left,
512 s.logoRendered,
510 s.logoRendered,
513− infoSection,
511+ "",
514 initContent,
512 initContent,
515 )
513 )
516 } else {
514 } else {