Skip to content

fix(desktop): tidy the toast's action, stack and timer line - #4201

Merged
LHagfoss merged 4 commits into
mainfrom
fix/desktop-toast-layout
Nov 22, 2026
Merged

LHagfoss merged 4 commits into
mainfrom
fix/desktop-toast-layout

Conversation

@LHagfoss

@LHagfoss LHagfoss commented Nov 22, 2026 •

Copy link
Copy Markdown
Owner

What

The toast's Undo/Open action read as heavy as the message, the collapsed stack showed the text of the cards behind over the front card's top edge, and an inset 1px timer line drained along the foot like a stray underline.

  • The action is a tinted button (bg-accent/12 text-accent) with the action's icon before its label (Undo ↶, Open ↗, Release page, Restart, Move…), on the same row as a quiet ×. The card stays as tall as its text.
  • At rest the cards behind the front one take its height and hide their text, so only their edges peek; it fades back in when the stack fans out (as T3 Code does). The stack measures each card's natural body height, so the fanned-out offsets don't jump.
  • No timer hairline: hovering already stops the clock. The 2px progress bar for a toast with real progress stays.
  • docs/design.md toast recipe updated.

Changelog

Toasts show Undo and Open as a tinted button with an icon, stack without the text behind showing through, and no longer draw a timer line.

Testing

bun run check; compared grey pill, outline, accent text, tint and a fixed two-line height in the mock window with info/success toasts and actions, collapsed and fanned out.

@github-actions github-actions Bot added the fix A bug fix label Nov 22, 2026
@LHagfoss
LHagfoss merged commit 2bd93a8 into main Nov 22, 2026
8 checks passed
@LHagfoss
LHagfoss deleted the fix/desktop-toast-layout branch November 22, 2026 09:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix A bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants