From 5f20f4da081072295216b24f72b973f3156ebaf8 Mon Sep 17 00:00:00 2001 From: emilkowalski Date: Sun, 3 Nov 2024 03:35:15 +0100 Subject: [PATCH] fix: disable lift on mobile/tablet --- src/styles.css | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/styles.css b/src/styles.css index b792811..33dde10 100644 --- a/src/styles.css +++ b/src/styles.css @@ -55,6 +55,12 @@ transform: translateY(-10px); } +@media (max-width: 768px) { + :where([data-sonner-toaster][data-lifted='true']) { + transform: none; + } +} + :where([data-sonner-toaster][data-x-position='right']) { right: max(var(--offset), env(safe-area-inset-right)); }