Skip to content

fix(ui): correct attachment overflow count and hint styling - #3516

Open
olifarhaan wants to merge 1 commit into
charmbracelet:mainfrom
olifarhaan:fix/incorrect-attachment-count
Open

fix(ui): correct attachment overflow count and hint styling#3516
olifarhaan wants to merge 1 commit into
charmbracelet:mainfrom
olifarhaan:fix/incorrect-attachment-count

Conversation

@olifarhaan

@olifarhaan olifarhaan commented Aug 6, 2026

Copy link
Copy Markdown

The "N more…" indicator was drawn after the chip it was meant to
replace, so the hidden count was always one too high, a single
attachment in a narrow pane reported "1 more…" with nothing hidden.
Fitting now happens before each chip is drawn and uses measured widths
rather than worst-case slots, so panes show as many chips as they hold.

Also renders the hint with the theme's foreground instead of a bare
style, which left it in the terminal's default color, and returns early
for non-positive widths where lipgloss ignores MaxWidth.

Fixes #3485"

  • I have read CONTRIBUTING.md.
  • I have created a discussion that was approved by a maintainer (for new features).

I have read the Contributor License Agreement (CLA) and hereby sign the CLA.

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 more showing in attachments view in the wrong font color when on a small window size

1 participant