fix: fix logo

Kujtim Hoxha created

Change summary

internal/tui/components/chat/sidebar/sidebar.go | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)

Detailed changes

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,