diff --git a/src/components/Modal.jsx b/src/components/Modal.jsx index 03a31fe..045507b 100644 --- a/src/components/Modal.jsx +++ b/src/components/Modal.jsx @@ -42,10 +42,10 @@ export default function Modal({ title, children, onClose, maxWidth = 'max-w-lg' aria-modal="true" aria-labelledby={titleId} tabIndex={-1} - className={`relative bg-th-card rounded-2xl border border-th-border shadow-2xl w-full ${maxWidth} focus:outline-hidden`} + className={`relative bg-th-card rounded-2xl border border-th-border shadow-2xl w-full ${maxWidth} max-h-[calc(100vh-2rem)] flex flex-col focus:outline-hidden`} > {/* Header */} -
+

{title}

- {/* Body */} -
+ {/* Body — scrolls inside the card instead of overflowing the viewport */} +
{children}