on main help sign in
fix: fix logo
commit945dda92c142350588c87ee7feb70ef41241769a authorKujtim Hoxha <kujtimii.h@gmail.com> dateWed 2 Jul 2025, 22:52 (1 year ago) parenta0cec91
1 file changed+5−5
internal/tui/components/chat/sidebar/sidebar.go+5−5
internal/tui/components/chat/sidebar/sidebar.go+5−5
@@ -75,7 +75,7 @@ func NewSidebarCmp(history history.Service, lspClients map[string]*lsp.Client, c
7575}
7676
7777func (m *sidebarCmp) Init() tea.Cmd {
78− m.logo = m.logoBlock()
78+ m.logo = m.logoBlock(false)
7979 m.cwd = cwd()
8080 return nil
8181}
@@ -230,9 +230,9 @@ func (m *sidebarCmp) loadSessionFiles() tea.Msg {
230230
231231func (m *sidebarCmp) SetSize(width, height int) tea.Cmd {
232232 if width < logoBreakpoint && (m.width == 0 || m.width >= logoBreakpoint) {
233− m.logo = m.logoBlock()
233+ m.logo = m.logoBlock(true)
234234 } else if width >= logoBreakpoint && (m.width == 0 || m.width < logoBreakpoint) {
235− m.logo = m.logoBlock()
235+ m.logo = m.logoBlock(false)
236236 }
237237
238238 m.width = width
@@ -244,9 +244,9 @@ func (m *sidebarCmp) GetSize() (int, int) {
244244 return m.width, m.height
245245}
246246
247−func (m *sidebarCmp) logoBlock() string {
247+func (m *sidebarCmp) logoBlock(compact bool) string {
248248 t := styles.CurrentTheme()
249− return logo.Render(version.Version, true, logo.Opts{
249+ return logo.Render(version.Version, compact, logo.Opts{
250250 FieldColor: t.Primary,
251251 TitleColorA: t.Secondary,
252252 TitleColorB: t.Primary,