Skip to content

fix(tui): align dialog footer padding - #49295

Closed
535628443 wants to merge 2 commits into
anomalyco:v2from
535628443:fix-session-picker-footer-alignment
Closed

535628443 wants to merge 2 commits into
anomalyco:v2from
535628443:fix-session-picker-footer-alignment

Conversation

@535628443

@535628443 535628443 commented Sep 16, 2026 •

Copy link
Copy Markdown

Issue for this PR

Closes #42172

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

The session picker renders its ctrl+a hint on the right side of the shared DialogSelect footer. The footer used 4 columns of left padding but only 2 on the right, causing the hint to extend past the dialog header alignment.

This makes the footer padding symmetric and adds a regression test that verifies the right footer hint ends at the same column as the header esc action.

How did you verify your code works?

  • packages/tui/test/cli/tui/dialog-select.test.tsx: 33 passed, 0 failed
  • Full packages/tui suite: 1340 tests passed; two unrelated PTY tests hit the existing 5s timeout on macOS

Screenshots / recordings

Before

Before: footer hint extends two columns past the header

After

After: footer hint aligns with the header

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

@github-actions

Copy link
Copy Markdown
Contributor

Thanks for your contribution!

This PR doesn't have a linked issue. All PRs must reference an existing issue.

Please:

  1. Open an issue describing the bug/feature (if one doesn't exist)
  2. Add Fixes #<number> or Closes #<number> to this PR description

See CONTRIBUTING.md for details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant