Skip to content

fix: Picker frame was one line taller than the terminal, hiding the filter line - #50

Merged
hammadmajid merged 2 commits into
mainfrom
fix/picker-frame-height
Sep 16, 2026
Merged

hammadmajid merged 2 commits into
mainfrom
fix/picker-frame-height

Conversation

@hammadmajid

Copy link
Copy Markdown
Contributor

On every terminal size the rendered frame was one line taller than the terminal. Bubble Tea's inline renderer drops the top line in that case, which is the filter line, and repaints the whole frame on every tick (686 KB of output in two seconds, now 7 KB).

Cause: the preview column carried a leading blank line above a box that is already ListHeight tall, and the box could also grow past ListHeight when its body was taller, since lipgloss Height is a minimum.

  • fix(picker): join the preview box at the top of the list and cap it with MaxHeight.
  • test(picker): the frame must be exactly the terminal height at five heights, with and without the preview.

Verified through a terminal emulator against the demo environment: filter line, legend, and keys line all visible at 30 and 9 rows.

🤖 Generated with Claude Code

hammadmajid and others added 2 commits September 17, 2026 04:35
… stays visible

The preview column was one line taller than the list, so every frame was
one line taller than the terminal. Bubble Tea's inline renderer dropped
the top line, the filter line, and repainted every tick.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…thout the preview

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@hammadmajid
hammadmajid merged commit dc6389c into main Sep 16, 2026
3 checks passed
@hammadmajid
hammadmajid deleted the fix/picker-frame-height branch September 16, 2026 23:35
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.

1 participant