From 49ef1449f1464891b8022fb25c19e71f5896f6fc Mon Sep 17 00:00:00 2001 From: MHSanaei Date: Tue, 2 Jun 2026 03:01:21 +0200 Subject: [PATCH] fix(clients): keep Add Client modal in viewport with internal scroll Open the modal near the top (top: 20) and let the body scroll internally (maxHeight + overflowY auto, overflowX hidden) so the tall vertical-layout form no longer leaves a large gap above and runs off the bottom. --- frontend/src/pages/clients/ClientFormModal.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frontend/src/pages/clients/ClientFormModal.tsx b/frontend/src/pages/clients/ClientFormModal.tsx index 9f500061..69b763e8 100644 --- a/frontend/src/pages/clients/ClientFormModal.tsx +++ b/frontend/src/pages/clients/ClientFormModal.tsx @@ -390,6 +390,8 @@ export default function ClientFormModal({ cancelText={t('cancel')} okButtonProps={{ loading: submitting }} width={720} + style={{ top: 20 }} + styles={{ body: { maxHeight: 'calc(100vh - 160px)', overflowY: 'auto', overflowX: 'hidden' } }} onOk={onSubmit} onCancel={close} >