Skip to content

Commit

Permalink
fix: disable lift on mobile/tablet
Browse files Browse the repository at this point in the history
  • Loading branch information
emilkowalski committed Nov 3, 2024
1 parent 9aecbb5 commit 5f20f4d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
Expand Down

0 comments on commit 5f20f4d

Please sign in to comment.