From cc1acf6eb6eb4a210c3a561ff044b7e0a7235f79 Mon Sep 17 00:00:00 2001 From: Leendert de Borst Date: Wed, 4 Feb 2026 11:30:55 +0100 Subject: [PATCH] Update ModalWrapper.tsx style (#1617) --- .../popup/components/Dialogs/ModalWrapper.tsx | 29 ++++++++++++------- 1 file changed, 19 insertions(+), 10 deletions(-) diff --git a/apps/browser-extension/src/entrypoints/popup/components/Dialogs/ModalWrapper.tsx b/apps/browser-extension/src/entrypoints/popup/components/Dialogs/ModalWrapper.tsx index f599f0a87..d4f7091bb 100644 --- a/apps/browser-extension/src/entrypoints/popup/components/Dialogs/ModalWrapper.tsx +++ b/apps/browser-extension/src/entrypoints/popup/components/Dialogs/ModalWrapper.tsx @@ -74,8 +74,6 @@ const ModalWrapper: React.FC = ({ } }; - const hasHeader = title || showCloseButton; - return (
{/* Backdrop */} @@ -90,15 +88,12 @@ const ModalWrapper: React.FC = ({ onClick={handleContainerClick} >
- {/* Header */} - {hasHeader && ( + {/* Header - only show as block if title exists */} + {title && (
- {title && ( -

- {title} -

- )} - {!title &&
} +

+ {title} +

{showCloseButton && (
)} + {/* Floating close button when no title */} + {!title && showCloseButton && ( + + )} + {/* Body */}
{children}