Fix modal size on mobile

This commit is contained in:
MartinBraquet
2025-09-13 23:18:56 +02:00
parent 94e9b6d99b
commit 2375330d76

View File

@@ -38,7 +38,7 @@ export function Modal(props: {
const positionClass = {
center: 'sm:items-center',
top: 'sm:items-start',
bottom: '',
bottom: 'sm:items-end',
}[position]
const wasOpenRef = useRef(open)
@@ -91,6 +91,7 @@ export function Modal(props: {
className={clsx(
'relative w-full transform transition-all',
'lg:mx-6 lg:my-8',
'max-h-[90vh] min-h-[60vh]', // 👈 add this
sizeClass,
className
)}