on main help sign in
Merge pull request #249 from charmbracelet/sidebar-detail-work
030f899Kujtim Hoxha
internal/tui/components/chat/sidebar/sidebar.go+4−4
@@ -36,7 +36,7 @@ type FileHistory struct {
36 latestVersion history.File
36 latestVersion history.File
37}
37}
38
38
39−const LogoHeightBreakpoint = 40
39+const LogoHeightBreakpoint = 30
40
40
41// Default maximum number of items to show in each section
41// Default maximum number of items to show in each section
42const (
42const (
@@ -689,7 +689,7 @@ func (m *sidebarCmp) filesBlock() string {
689 if totalFilesWithChanges > maxFiles {
689 if totalFilesWithChanges > maxFiles {
690 remaining := totalFilesWithChanges - maxFiles
690 remaining := totalFilesWithChanges - maxFiles
691 fileList = append(fileList,
691 fileList = append(fileList,
692− t.S().Base.Foreground(t.FgMuted).Render(fmt.Sprintf("… and %d more", remaining)),
692+ t.S().Base.Foreground(t.FgSubtle).Render(fmt.Sprintf("…and %d more", remaining)),
693 )
693 )
694 }
694 }
695
695
@@ -777,7 +777,7 @@ func (m *sidebarCmp) lspBlock() string {
777 if len(lsp) > maxLSPs {
777 if len(lsp) > maxLSPs {
778 remaining := len(lsp) - maxLSPs
778 remaining := len(lsp) - maxLSPs
779 lspList = append(lspList,
779 lspList = append(lspList,
780− t.S().Base.Foreground(t.FgMuted).Render(fmt.Sprintf("… and %d more", remaining)),
780+ t.S().Base.Foreground(t.FgSubtle).Render(fmt.Sprintf("…and %d more", remaining)),
781 )
781 )
782 }
782 }
783
783
@@ -834,7 +834,7 @@ func (m *sidebarCmp) mcpBlock() string {
834 if len(mcps) > maxMCPs {
834 if len(mcps) > maxMCPs {
835 remaining := len(mcps) - maxMCPs
835 remaining := len(mcps) - maxMCPs
836 mcpList = append(mcpList,
836 mcpList = append(mcpList,
837− t.S().Base.Foreground(t.FgMuted).Render(fmt.Sprintf("… and %d more", remaining)),
837+ t.S().Base.Foreground(t.FgSubtle).Render(fmt.Sprintf("…and %d more", remaining)),
838 )
838 )
839 }
839 }
840
840