From ba8cee22d3fb5dbb33b6604ab94c3e78b8a947e5 Mon Sep 17 00:00:00 2001 From: igor_nadein Date: Sat, 28 Feb 2026 13:29:08 +0300 Subject: [PATCH] refactor: Align Modal component with project-wide style Changes to match existing modal patterns: - Update z-index from z-50 to z-[100] for consistency - Add backdrop-blur-sm to backdrop for modern glass effect - Change shadow-2xl to shadow-xl (project standard) - Move max-h-[90vh] to container level (not content div) - Move overflow-y-auto to container for proper scrolling - Update close button from rounded-lg to rounded-full - Change button padding from p-2 to p-1 for tighter look - Remove border-b from header, use mb-4 instead - Change h2 to h3 for header title (semantic hierarchy) - Add bottom padding div for proper spacing Style now matches CalendarModal, EventModal, and ViewEventDetailsModal patterns --- frontend/src/components/ui/Modal.tsx | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/frontend/src/components/ui/Modal.tsx b/frontend/src/components/ui/Modal.tsx index 9b3e5cc4..87035a42 100644 --- a/frontend/src/components/ui/Modal.tsx +++ b/frontend/src/components/ui/Modal.tsx @@ -128,7 +128,7 @@ export function Modal({
{/* Header */} {(title || showCloseButton || showFullscreenToggle) && ( -
+
{title && ( - + )}
{showFullscreenToggle && (
);