fix: Move toast notifications to top-center on mobile to prevent cut-offs at bottom
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user