From c4070392867ef8a99448617801199c07a7f29ee2 Mon Sep 17 00:00:00 2001 From: 1AhmedYasser <26207361+1AhmedYasser@users.noreply.github.com> Date: Sun, 24 May 2026 15:49:37 +0300 Subject: [PATCH] fix(1024): Fixed endpoint modal overflow --- .../components/Flow/EdgeTypes/AddEndpointModal.tsx | 2 +- GUI/src/components/Modal/Modal.scss | 5 +++++ GUI/src/components/Modal/index.tsx | 12 ++++++++++-- 3 files changed, 16 insertions(+), 3 deletions(-) diff --git a/GUI/src/components/Flow/EdgeTypes/AddEndpointModal.tsx b/GUI/src/components/Flow/EdgeTypes/AddEndpointModal.tsx index 754559ac3..fcefee8f5 100644 --- a/GUI/src/components/Flow/EdgeTypes/AddEndpointModal.tsx +++ b/GUI/src/components/Flow/EdgeTypes/AddEndpointModal.tsx @@ -188,7 +188,7 @@ const AddEndpointModal: React.FC = ({ const modalTitle = mode === 'edit' ? t('newService.editEndpoint') : t('newService.createNewEndpoint'); return ( - + void; + size?: 'default' | 'large'; }; -const Modal: FC> = ({ title, footer, onClose, children, description }) => { +const Modal: FC> = ({ + title, + footer, + onClose, + children, + description, + size = 'default', +}) => { return ( e.stopPropagation()} - className="modal" + className={`modal${size === 'large' ? ' modal--large' : ''}`} aria-describedby={description ? 'modal-description' : undefined} > {title && (