Fix modal: position at 50vh with translate-y -50%
This commit is contained in:
@@ -108,9 +108,9 @@ export default function CatModal({ catId, onClose }: CatModalProps) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="fixed inset-0 z-[60] bg-black/30 flex items-center justify-center p-4 animate-fade-in" onClick={onClose}>
|
<div className="fixed inset-0 z-[60] bg-black/30 overflow-y-auto animate-fade-in" onClick={onClose}>
|
||||||
<div
|
<div
|
||||||
className="w-full max-w-lg bg-white rounded-2xl max-h-[90vh] flex flex-col overflow-hidden shadow-xl animate-scale-in"
|
className="w-full max-w-lg bg-white rounded-2xl max-h-[90vh] flex flex-col overflow-hidden shadow-xl animate-scale-in mx-auto mt-[50vh] -translate-y-1/2"
|
||||||
onClick={e => e.stopPropagation()}
|
onClick={e => e.stopPropagation()}
|
||||||
>
|
>
|
||||||
<div className="flex items-center justify-between px-5 py-4 shrink-0">
|
<div className="flex items-center justify-between px-5 py-4 shrink-0">
|
||||||
|
|||||||
Reference in New Issue
Block a user