Skip to content

Commit 0f7bcfa

Browse files
committed
Bring back the spacer for layout consistency
Adding the working indicator would move all the contents down one line, bring back the spacer so that this doesn't happen. This only fixes for the working indicator, not the RAG Signed-off-by: Djordje Lukic <djordje.lukic@docker.com>
1 parent 07541bb commit 0f7bcfa

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

pkg/tui/components/sidebar/sidebar.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,8 @@ func (m *model) verticalView() string {
286286
}
287287
if working := m.workingIndicator(); working != "" {
288288
session = append(session, working)
289+
} else {
290+
session = append(session, "") // spacer for layout consistency
289291
}
290292

291293
var main []string
@@ -306,7 +308,7 @@ func (m *model) verticalView() string {
306308
main = append(main, todoContent)
307309
}
308310

309-
return strings.Join(main, "\n\n")
311+
return strings.Join(main, "\n")
310312
}
311313

312314
func (m *model) workingIndicator() string {
@@ -397,7 +399,6 @@ func (m *model) workingIndicatorHorizontal() string {
397399
if m.working {
398400
labels = append(labels, "Working…")
399401
}
400-
401402
// Add MCP init indicator if initializing
402403
if m.mcpInit {
403404
labels = append(labels, "Initializing MCP servers…")

0 commit comments

Comments
 (0)