From e40fd197b9adc3b0fa4fa37e4baa6bb417209428 Mon Sep 17 00:00:00 2001
From: Ivan <8611739+IRBorisov@users.noreply.github.com>
Date: Wed, 18 Dec 2024 21:26:44 +0300
Subject: [PATCH] M: Use float property instead of overlay
---
.../frontend/src/components/ui/Modal.tsx | 21 +++++++++----------
1 file changed, 10 insertions(+), 11 deletions(-)
diff --git a/rsconcept/frontend/src/components/ui/Modal.tsx b/rsconcept/frontend/src/components/ui/Modal.tsx
index 41b2a31b..76af1d17 100644
--- a/rsconcept/frontend/src/components/ui/Modal.tsx
+++ b/rsconcept/frontend/src/components/ui/Modal.tsx
@@ -12,7 +12,6 @@ import BadgeHelp from '../info/BadgeHelp';
import { CProps } from '../props';
import Button from './Button';
import MiniButton from './MiniButton';
-import Overlay from './Overlay';
export interface ModalProps extends CProps.Styling {
/** Title of the modal window. */
@@ -105,20 +104,20 @@ function Modal({
'border rounded-xl bg-prim-100'
)}
>
-
- }
- onClick={handleCancel}
- />
-
{helpTopic && !hideHelpWhen?.() ? (
-
+
-
+
) : null}
+ }
+ className='float-right mt-2 mr-2'
+ onClick={handleCancel}
+ />
+
{header ? {header}
: null}