-
-
Notifications
You must be signed in to change notification settings - Fork 306
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
Adding min-width to my custom toast, breaks the positioning. #382
Comments
+1 to this, it's not just a min width problem, and it's not just on the bottom-right alignment. The component doesn't seem to gracefully handle alignment when the width of the toast is anything but the original size. In this example the It seems that alignment, not matter where, is based on the left of the toast |
I've solved the issue with the following steps:
This is a very rudimentary solution, it only covers the scenarios in which you'd want your toast to appear on the bottom (left, center, right). I've also added padding on left and right sides so it doesn't collide with the border of the window. Hope this helps! |
Fixed in #559, it will be availalbe in version 2.0 launching soon. |
Describe the feature / bug 📝:
When I add min-width to the toast, it leaves the screen.
Steps to reproduce the bug 🔁:
it works fine without min-width, but I would like for the content to take more space.
The text was updated successfully, but these errors were encountered: