Skip to content

Conversation

@leggetter
Copy link
Collaborator

Fixed three issues in TUI status bar:

  1. Duplicate '[q] Quit' on narrow terminals:

    • Added .Width(m.width) constraint to statusBarStyle.Render() calls
    • Prevents text wrapping when terminal width is constrained
    • Status bar now truncates instead of wrapping to new line
  2. Missing '[q] Quit' on wide terminals:

    • Added '• [q] Quit' to wide terminal status messages
    • Now consistently shows quit option across all terminal sizes
  3. Width threshold adjustment:

    • Adjusted isNarrow threshold from 100 to 108 columns
    • Prevents wrapping when switching from compact to full-text mode
    • Full menu text only appears when there's enough space to fit
      Changes in renderStatusBar() function in pkg/listen/tui/view.go

Fixed three issues in TUI status bar:

1. Duplicate '[q] Quit' on narrow terminals:
   - Added .Width(m.width) constraint to statusBarStyle.Render() calls
   - Prevents text wrapping when terminal width is constrained
   - Status bar now truncates instead of wrapping to new line

2. Missing '[q] Quit' on wide terminals:
   - Added '• [q] Quit' to wide terminal status messages
   - Now consistently shows quit option across all terminal sizes

3. Width threshold adjustment:
   - Adjusted isNarrow threshold from 100 to 108 columns
   - Prevents wrapping when switching from compact to full-text mode
   - Full menu text only appears when there's enough space to fit
Changes in renderStatusBar() function in pkg/listen/tui/view.go
@leggetter leggetter changed the base branch from main to next January 8, 2026 12:58
@leggetter leggetter merged commit 82a333f into next Jan 8, 2026
6 checks passed
@leggetter leggetter deleted the fix/dupe-quit-in-status-bar branch January 8, 2026 12:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants