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,