Skip to content

fix(animated-toast-stack): wrap long titles, add per-status sounds - #308

Merged
starc007 merged 1 commit into
mainfrom
fix/toast-pill-ellipsis
Dec 1, 2026
Merged

starc007 merged 1 commit into
mainfrom
fix/toast-pill-ellipsis

Conversation

@starc007

@starc007 starc007 commented Dec 1, 2026

Copy link
Copy Markdown
Owner

Closes #304.

Long titles

  • The pill cut long titles through a letter with no ellipsis: truncate sat on the outer span, but the text lives in the inner block (Swap), so the outer span clipped it.
  • Titles now wrap to two lines, then an ellipsis, in both the pill and the card, the same limit the description uses. The pill keeps a 40px minimum, so short titles are unchanged.
  • The card's title row is top-aligned so the +N count stays on the first line. break-words keeps a long unbroken word inside the title.

Sounds (with sound on)

  • Each status has its own sound: success (rising mallet notes), error (falling wooden knocks), info and neutral (bell), loading (soft pop).
  • A loading toast plays its result when it turns into success or error.
  • One sound per update, error first.

Checked: bun run check and bun test pass. In the browser, the long pill wraps to 2 lines (294 x 52px), the long card fits in 2 lines, the island settles with no clipping, and each example plays the expected sound.

@starc007
starc007 merged commit 2e65514 into main Dec 1, 2026
1 check passed
@starc007
starc007 deleted the fix/toast-pill-ellipsis branch December 1, 2026 11:56
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.

Animated Toast Stack: the pill cuts long titles without an ellipsis

1 participant