Procházet zdrojové kódy

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.
MHSanaei před 17 hodinami
rodič
revize
49ef1449f1
1 změnil soubory, kde provedl 2 přidání a 0 odebrání
  1. 2 0
      frontend/src/pages/clients/ClientFormModal.tsx

+ 2 - 0
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}
       >