Sticky toast
See original GitHub issueI was going through documentation and did not find anything about sticky toasts.
Lets say I have long page, when I make toast something like this:
toast.success("Some lol message", {
onClose: () => self.loadComments(),
autoClose: false,
position: toast.POSITION.TOP_CENTER,
draggable: false,
});
The toast will be shown at the very top of the page, however I will not see it, as I am somewhere in the bottom of the page.
What to do in this case? Is it possible somehow to stick toast to the top center of the page and make it fixed position (or something close to it), so it moved after user.
Issue Analytics
- State:
- Created 5 years ago
- Comments:9 (3 by maintainers)
Top Results From Across the Web
Sabrina (@sticky.toast) • Instagram photos and videos
577 Followers, 233 Following, 11 Posts - See Instagram photos and videos from Sabrina (@sticky.toast)
Read more >Sticky Toast - Facebook
Sticky Toast. 91 likes. Sticky Toast is a Spokane Rock Band, and is made up of a talented team of creative musicians. We...
Read more >Sticky alerts (Toasts) - Halfmoon
Sticky alerts or toasts are alerts that stick to the top right of the page, and are only displayed for a few seconds....
Read more >Sticky Toast on Amazon Music Unlimited
Listen to your favorite songs from Sticky Toast. Stream ad-free with Amazon Music Unlimited on mobile, desktop, and tablet. Download our mobile app...
Read more >Sticky Bun French Toast Recipe - Food.com
In a small pan melt butter. Add brown sugar, corn syrup and pecans (if using). When all has melted and combined take off...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@fkhadra I would reopen this as I would like to know how to fix it.
Here is an example: https://codesandbox.io/s/optimistic-ives-xsfqo
Just as an example: Assume you have a react application loaded in iframe. Iframe resizes with the content of the react application. Meaning if content of the iframe is 1500px, then iframe would be about that size. If users scrolls down to 1000px and I would like to create a toast, then it would be shown at the very top of the iframe which is outside of the user’s viewport, so it is not seen by the user.
Is there any way to fix it? Or at least what is the possible solution to it?
Hey @bologer,
Sorry for the late reply. Did you try to overwrite the
Toastify__toast-containe
css class ? The position is set tofixed
.