From cea02b161c35717c276607df49d1d69991f65a0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?marcin=20miko=C5=82ajczak?= Date: Sat, 24 Aug 2024 14:15:50 +0200 Subject: [PATCH] Give modals max height MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: marcin mikołajczak --- src/components/ui/modal/modal.tsx | 141 +++++++++++++++--------------- 1 file changed, 69 insertions(+), 72 deletions(-) diff --git a/src/components/ui/modal/modal.tsx b/src/components/ui/modal/modal.tsx index 9b7a131c5..b9255f3f4 100644 --- a/src/components/ui/modal/modal.tsx +++ b/src/components/ui/modal/modal.tsx @@ -100,87 +100,84 @@ const Modal = React.forwardRef(({
-
-
- {title && ( -
- {onBack && ( - - )} + {title && ( +
+
+ {onBack && ( + + )} -

- {title} -

+

+ {title} +

- {onClose && ( - - )} -
- )} - - {title ? ( -
- {children} -
- ) : children} -
-
- - {confirmationAction && ( - -
- {cancelAction && ( - + {onClose && ( + )}
- - - {secondaryAction && ( - - )} - - - -
+
)} +
+
+ {children} +
+ + {confirmationAction && ( + +
+ {cancelAction && ( + + )} +
+ + + {secondaryAction && ( + + )} + + + +
+ )} +
); });