Skip to content

Commit

Permalink
fix modal on Firefox
Browse files Browse the repository at this point in the history
  • Loading branch information
Aesop7 authored Jan 3, 2024
1 parent c8ca9a1 commit 966a14e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/shared/modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ export default function Modal({
onOpenAutoFocus={(e) => e.preventDefault()}
onCloseAutoFocus={(e) => e.preventDefault()}
className={cn(
"animate-scale-in fixed inset-0 z-40 m-auto max-h-fit w-full max-w-md overflow-hidden border border-gray-200 bg-white p-0 shadow-xl md:rounded-2xl",
"fixed left-[50%] top-[50%] translate-x-[-50%] translate-y-[-50%]",
"z-40 w-full max-w-md overflow-hidden border border-gray-200 bg-white p-0 shadow-xl md:rounded-2xl",
className,
)}
>
Expand Down

0 comments on commit 966a14e

Please sign in to comment.