feat(DateTimePicker): implement custom popper container for improved layout handling
Build & Push Docker Image / build (push) Successful in 6m58s

feat(Modal): enhance modal styling with rounded corners and improved overflow handling
style: adjust z-index for datepicker popper to ensure proper layering above modals
This commit is contained in:
2026-03-04 10:49:17 +01:00
parent a69b2e4d9a
commit fcb83a9b72
3 changed files with 15 additions and 6 deletions
+3 -3
View File
@@ -4,9 +4,9 @@ export default function Modal({ title, children, onClose, maxWidth = 'max-w-lg'
return (
<div className="fixed inset-0 z-50 flex items-center justify-center p-4">
<div className="fixed inset-0 bg-black/60 backdrop-blur-sm" onClick={onClose} />
<div className={`relative bg-th-card rounded-2xl border border-th-border shadow-2xl w-full ${maxWidth} overflow-hidden`}>
<div className={`relative bg-th-card rounded-2xl border border-th-border shadow-2xl w-full ${maxWidth}`}>
{/* Header */}
<div className="flex items-center justify-between px-6 py-4 border-b border-th-border">
<div className="flex items-center justify-between px-6 py-4 border-b border-th-border rounded-t-2xl">
<h2 className="text-lg font-semibold text-th-text">{title}</h2>
<button
onClick={onClose}
@@ -16,7 +16,7 @@ export default function Modal({ title, children, onClose, maxWidth = 'max-w-lg'
</button>
</div>
{/* Body */}
<div className="p-6">
<div className="p-6 overflow-y-auto max-h-[calc(90vh-4rem)]">
{children}
</div>
</div>