fix: Move toast notifications to top-center on mobile to prevent cut-offs at bottom

This commit is contained in:
2026-08-12 04:25:56 +00:00
parent f089b7368f
commit 12c522cec3
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ const Toaster = ({ ...props }: ToasterProps) => {
return () => window.removeEventListener("resize", checkMobile)
}, [])
const effectivePosition = isMobile ? "bottom-center" : (props.position || "top-right")
const effectivePosition = isMobile ? "top-center" : (props.position || "top-right")
return (
<Sonner
+2 -2
View File
@@ -98,8 +98,8 @@
@media (max-width: 639px) {
[data-sonner-toaster] {
bottom: 20px !important;
top: auto !important;
top: 16px !important;
bottom: auto !important;
left: 50% !important;
transform: translateX(-50%) !important;
width: calc(100% - 32px) !important;