From 945dda92c142350588c87ee7feb70ef41241769a Mon Sep 17 00:00:00 2001 From: Kujtim Hoxha Date: Wed, 2 Jul 2025 22:52:36 +0200 Subject: [PATCH] fix: fix logo --- internal/tui/components/chat/sidebar/sidebar.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/internal/tui/components/chat/sidebar/sidebar.go b/internal/tui/components/chat/sidebar/sidebar.go index bfcc74c43a2727138d479af647ba461bdcc7520c..54e3557a682dde3075fcb16a95016d9e25941183 100644 --- a/internal/tui/components/chat/sidebar/sidebar.go +++ b/internal/tui/components/chat/sidebar/sidebar.go @@ -75,7 +75,7 @@ func NewSidebarCmp(history history.Service, lspClients map[string]*lsp.Client, c } func (m *sidebarCmp) Init() tea.Cmd { - m.logo = m.logoBlock() + m.logo = m.logoBlock(false) m.cwd = cwd() return nil } @@ -230,9 +230,9 @@ func (m *sidebarCmp) loadSessionFiles() tea.Msg { func (m *sidebarCmp) SetSize(width, height int) tea.Cmd { if width < logoBreakpoint && (m.width == 0 || m.width >= logoBreakpoint) { - m.logo = m.logoBlock() + m.logo = m.logoBlock(true) } else if width >= logoBreakpoint && (m.width == 0 || m.width < logoBreakpoint) { - m.logo = m.logoBlock() + m.logo = m.logoBlock(false) } m.width = width @@ -244,9 +244,9 @@ func (m *sidebarCmp) GetSize() (int, int) { return m.width, m.height } -func (m *sidebarCmp) logoBlock() string { +func (m *sidebarCmp) logoBlock(compact bool) string { t := styles.CurrentTheme() - return logo.Render(version.Version, true, logo.Opts{ + return logo.Render(version.Version, compact, logo.Opts{ FieldColor: t.Primary, TitleColorA: t.Secondary, TitleColorB: t.Primary,