on main help sign in
fix(mcp): fix ui description, double spaces (#1210)
886bb7cCarlos Alexandro Becker
internal/tui/components/core/core.go+5−2
@@ -110,14 +110,17 @@ func Status(opts StatusOpts, width int) string {
110 extraContentWidth += 1
110 extraContentWidth += 1
111 }
111 }
112 description = ansi.Truncate(description, width-lipgloss.Width(icon)-lipgloss.Width(title)-2-extraContentWidth, "…")
112 description = ansi.Truncate(description, width-lipgloss.Width(icon)-lipgloss.Width(title)-2-extraContentWidth, "…")
113+ description = t.S().Base.Foreground(descriptionColor).Render(description)
113 }
114 }
114− description = t.S().Base.Foreground(descriptionColor).Render(description)
115
115
116 content := []string{}
116 content := []string{}
117 if icon != "" {
117 if icon != "" {
118 content = append(content, icon)
118 content = append(content, icon)
119 }
119 }
120− content = append(content, title, description)
120+ content = append(content, title)
121+ if description != "" {
122+ content = append(content, description)
123+ }
121 if opts.ExtraContent != "" {
124 if opts.ExtraContent != "" {
122 content = append(content, opts.ExtraContent)
125 content = append(content, opts.ExtraContent)
123 }
126 }
internal/tui/components/core/testdata/TestStatus/EmptyDescription.golden+1−1
@@ -1 +1 @@
1−● Title Only 
1+● Title Only
internal/tui/components/mcp/mcp.go+1−1
@@ -55,7 +55,7 @@ func RenderMCPList(opts RenderOptions) []string {
55
55
56 // Determine icon and color based on state
56 // Determine icon and color based on state
57 icon := t.ItemOfflineIcon
57 icon := t.ItemOfflineIcon
58− description := l.MCP.Command
58+ description := ""
59 extraContent := ""
59 extraContent := ""
60
60
61 if state, exists := mcpStates[l.Name]; exists {
61 if state, exists := mcpStates[l.Name]; exists {