Skip to content

An opinionated toast component for React.

Center toast on smaller screens (#76)

Emil Kowalski229c74b1ccfc
diff --git a/src/styles.css b/src/styles.css
index 1adc4e8..7a1c5d9 100644
--- a/src/styles.css
+++ b/src/styles.css
@@ -319,7 +319,7 @@
width: 100%;
}
- [data-sonner-toast] {
+ [data-sonner-toaster] [data-sonner-toast] {
left: 0;
right: 0;
width: calc(100% - 32px);