Skip to content

Commit

Permalink
Center toast on smaller screens (#76)
Browse files Browse the repository at this point in the history
* Write initial update logic

* Progress

* Calculate height correctly

* Update

* Update readme

* Revert hero changes

* Fix logic

* Center toasts on smaller screens

* Update
  • Loading branch information
emilkowalski committed May 23, 2023
1 parent fe03e34 commit 229c74b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@
width: 100%;
}

[data-sonner-toast] {
[data-sonner-toaster] [data-sonner-toast] {
left: 0;
right: 0;
width: calc(100% - 32px);
Expand Down

0 comments on commit 229c74b

Please sign in to comment.