feat(tui): pad the attention flag off the project dot (§8.1)

A one-cell gap between the ⚑ attention flag and the project-colored ●
bullet; the blank-flag case already reserves the same width, so rows stay
aligned whether or not a flag is present.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
Erich Blume 2026-06-03 18:12:09 -07:00
commit 02f98355e7

View file

@ -267,7 +267,7 @@ fn render_tasks<B: Backend>(frame: &mut Frame, app: &App<B>, area: Rect) {
// Pad the title so the right side (↻ + date chip) aligns right.
let chip_w = chip.len();
let recur_w = if recur { 2 } else { 0 }; // "↻ "
let fixed = 1 + 1 + 1 + 1 + 1; // cursor + flag + bullet + space + trailing space
let fixed = 1 + 1 + 1 + 1 + 1 + 1; // cursor + flag + gap + bullet + space + trailing space
let avail = width.saturating_sub(fixed + recur_w + chip_w);
let mut title: String = t.title.chars().take(avail).collect();
let pad = avail.saturating_sub(title.chars().count());
@ -276,6 +276,7 @@ fn render_tasks<B: Backend>(frame: &mut Frame, app: &App<B>, area: Rect) {
let mut header = vec![
Span::styled(cursor, Style::default().fg(Color::Cyan)),
Span::styled(flag, flag_st),
Span::raw(" "),
Span::styled("", bullet_st),
Span::raw(" "),
Span::styled(title, title_style),