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.
This commit is contained in:
MHSanaei
2026-06-02 03:01:21 +02:00
parent b9612f1326
commit 49ef1449f1

View File

@@ -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}
>