Skip to content

An opinionated toast component for React.

fix height while are expanded

João Pedro Magalhães72291c1c1da5
diff --git a/src/styles.css b/src/styles.css
index ccbcccd..a424da0 100644
--- a/src/styles.css
+++ b/src/styles.css
@@ -240,7 +240,7 @@
pointer-events: none;
}
-[data-sonner-toast][data-expanded='true'] {
+[data-sonner-toast][data-mounted='true'][data-expanded='true'] {
--y: translateY(calc(var(--lift) * var(--offset)));
height: var(--initial-height);
}