Skip to content

feat(ui): configure toasts to stack #12119

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

LimChorngUan
Copy link
Contributor

@LimChorngUan LimChorngUan commented Apr 15, 2025

When multiple actions trigger toasts in rapid succession, newer toast is shown in front of the older ones, preventing users from reading all notification messages.

This commit modified the Toast admin component to customize Sonner toast behavior by adding expand={true} which keeps all toasts visible in a stacked layout rather than hidden after one another.

Documentation reference: https://sonner.emilkowal.ski/ (see "Expand")

Before

Screen.Recording.2025-04-15.at.14.08.23.mov

After

Screen.Recording.2025-04-15.at.14.09.54.mov

When multiple actions trigger toasts in rapid succession, newer toasts
were replacing older ones, preventing users from reading all
notification messages.

This commit modified the Toast admin component to customize Sonner toast
behavior by adding `expand={true}` which keeps all toasts visible in a
stacked layout rather than hidden after one another.

Documentation reference: https://sonner.emilkowal.ski/ (see "Expand")
@LimChorngUan LimChorngUan changed the title feat(ui): Configure toasts to stack feat(ui): configure toasts to stack Apr 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant