Toast wraps between words and keeps its gutter (#434); time budgets for opacity and width specs (#442) #458

Closed
kayg wants to merge 0 commits from issue/434-442-small-2 into dev
Owner

Closes #434
Closes #442

Replaces #456, which has the same commit plus one more.

  • #434 gutter On a phone Sonner's column is the window's width pushed in by its side offset, so it ran 16 px past the right edge and the capsule touched it. The column is now calc(100vw - 32px) wide at 600 px and below. The spec checks a 16 px gutter on both sides at 320, 360 and 375, light and dark (fails 6 of 6 without the fix). Screenshots on #434.
  • #434 wrap The toast drew each letter as an inline-block span, and a line can break between any two of those, so "Trash" became "Tras / h". Letters are now grouped in nowrap word spans and overflow-wrap: anywhere is gone: lines break only at spaces. New spec a toast never breaks inside a word at 320, 360 and 375 px, light and dark (fails 4 of 6 before the fix). Screenshots on #434.
  • #442 opacity.spec.ts:62 loops four opacities in one test and compares them (strictly less see-through), so it can't be split without loosening that; it gets a 60 s budget with a comment, as bar-focus did in #421. No assertion changed.
  • width.spec "Width is in the Style sheet on wide windows only": a time budget problem too (six reopenings: 34 s at load ~40 on webkit-390, 36 s on webkit-1440, over 60 s once at load ~48). Got a 90 s budget with a comment.

Tests (--no-deps, toast-bar + opacity + width specs): chromium-390 17 passed 7 skipped, webkit-390 17 passed 7 skipped, webkit-1440 21 passed 1 skipped 2 failed at load ~35 (opacity.spec narrow-in-focus 5 s poll, and the existing toast-bar.spec:14 click timeout); both passed on a re-run (15 passed). bun run check (svelte-check): 0 errors, 12 existing warnings.

🤖 Generated with Claude Code

https://claude.ai/code/session_018Yyy8fQGxPLkLa8v8NXz7T

Closes #434 Closes #442 Replaces #456, which has the same commit plus one more. - **#434 gutter** On a phone Sonner's column is the window's width pushed in by its side offset, so it ran 16 px past the right edge and the capsule touched it. The column is now `calc(100vw - 32px)` wide at 600 px and below. The spec checks a 16 px gutter on both sides at 320, 360 and 375, light and dark (fails 6 of 6 without the fix). Screenshots on #434. - **#434 wrap** The toast drew each letter as an `inline-block` span, and a line can break between any two of those, so "Trash" became "Tras / h". Letters are now grouped in `nowrap` word spans and `overflow-wrap: anywhere` is gone: lines break only at spaces. New spec `a toast never breaks inside a word` at 320, 360 and 375 px, light and dark (fails 4 of 6 before the fix). Screenshots on #434. - **#442** `opacity.spec.ts:62` loops four opacities in one test and compares them (strictly less see-through), so it can't be split without loosening that; it gets a 60 s budget with a comment, as `bar-focus` did in #421. No assertion changed. - **width.spec "Width is in the Style sheet on wide windows only"**: a time budget problem too (six reopenings: 34 s at load ~40 on webkit-390, 36 s on webkit-1440, over 60 s once at load ~48). Got a 90 s budget with a comment. Tests (`--no-deps`, toast-bar + opacity + width specs): chromium-390 17 passed 7 skipped, webkit-390 17 passed 7 skipped, webkit-1440 21 passed 1 skipped 2 failed at load ~35 (opacity.spec narrow-in-focus 5 s poll, and the existing toast-bar.spec:14 click timeout); both passed on a re-run (15 passed). `bun run check` (svelte-check): 0 errors, 12 existing warnings. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_018Yyy8fQGxPLkLa8v8NXz7T
Toast wraps only between words (#434); give slow WebKit specs a time budget (#442)
Some checks failed
CI / server (pull_request) Successful in 21s
CI / rust (pull_request) Successful in 1m52s
CI / web (pull_request) Failing after 47m3s
27f2185bc2
Each toast letter is an inline-block, so a line could break after any letter. Letters are
now grouped in nowrap word spans. opacity.spec and width.spec got a longer time budget; no
assertion changed.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018Yyy8fQGxPLkLa8v8NXz7T
Toast capsule keeps the 16 px side gutter on phones (#434)
Some checks failed
CI / server (pull_request) Successful in 22s
CI / rust (pull_request) Successful in 1m49s
CI / web (pull_request) Failing after 47m24s
86340a9c1e
Sonner's column on a phone is the window's width pushed in by its side offset, so it ran 16 px
past the right edge and the capsule touched it. The column is now 100vw - 32px wide. The new
spec checks the gutter at 320, 360 and 375.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018Yyy8fQGxPLkLa8v8NXz7T
Author
Owner

Landed in dev via train p.

Landed in dev via train p.
kayg closed this pull request 2026-10-16 03:17:27 +00:00
Some checks failed
CI / server (pull_request) Successful in 22s
CI / rust (pull_request) Successful in 1m49s
CI / web (pull_request) Failing after 47m24s

Pull request closed

Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
kayg/calternal!458
No description provided.