diff options
| author | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-03-28 15:53:59 +0300 |
|---|---|---|
| committer | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-03-28 15:55:32 +0300 |
| commit | 42e9aec48168022ce956126999484b3b5f99dff8 (patch) | |
| tree | a2908dd36b290f28e49aab3247b96512fce5f2c7 /src/ui.rs | |
| parent | ebd800755832784e1e48e250bf1db11a8b286209 (diff) | |
refine sidebar workspace badges and agent summaries
- make workspace rows use a more consistent marker/name/state order
- simplify multi-pane state presentation in the sidebar
- switch agent summaries from plus-separated to comma-separated wording
Diffstat (limited to 'src/ui.rs')
| -rw-r--r-- | src/ui.rs | 19 |
1 files changed, 8 insertions, 11 deletions
@@ -255,24 +255,21 @@ fn render_sidebar(app: &AppState, frame: &mut Frame, area: Rect) { } else { Style::default().fg(Color::DarkGray) }; - let mut line1 = vec![Span::styled(marker, text_style)]; + let mut line1 = vec![ + Span::styled(marker, text_style), + Span::styled( + ws.display_name(), + text_style.add_modifier(Modifier::BOLD), + ), + Span::styled(" ", dim_style), + ]; if ws.layout.pane_count() == 1 { line1.push(Span::styled( icon, if selected { icon_style.bg(app.accent) } else { icon_style }, )); - line1.push(Span::styled(" ", text_style)); - line1.push(Span::styled( - ws.display_name(), - text_style.add_modifier(Modifier::BOLD), - )); } else { - line1.push(Span::styled( - ws.display_name(), - text_style.add_modifier(Modifier::BOLD), - )); - line1.push(Span::styled(" ", dim_style)); for (pane_state, pane_seen) in ws.pane_states() { let (pane_icon, pane_style) = state_icon_style(pane_state, pane_seen); line1.push(Span::styled( |
