From 05ffc0bf437d0b8da135273552ee47626f8549c9 Mon Sep 17 00:00:00 2001 From: Nathaniel Rindlaub Date: Wed, 10 Jan 2024 10:25:54 -0800 Subject: [PATCH] Make modals scrollable --- src/components/Modal.jsx | 4 +++- src/features/upload/BulkUploadTable.jsx | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/Modal.jsx b/src/components/Modal.jsx index 38dc4d9d..46f25c0e 100644 --- a/src/components/Modal.jsx +++ b/src/components/Modal.jsx @@ -5,7 +5,9 @@ import * as DialogPrimitive from '@radix-ui/react-dialog'; import PanelHeader from './PanelHeader'; const ModalBody = styled('div', { - margin: '$3', + padding: '$3', + maxHeight: 'calc(85vh - $7)', + overflowY: 'scroll' }); const overlayShow = keyframes({ diff --git a/src/features/upload/BulkUploadTable.jsx b/src/features/upload/BulkUploadTable.jsx index 56929fed..00bf638b 100644 --- a/src/features/upload/BulkUploadTable.jsx +++ b/src/features/upload/BulkUploadTable.jsx @@ -97,7 +97,6 @@ const BulkUploadTable = ({ percentUploaded }) => { const errorsExportLoading = useSelector(selectErrorsExportLoading); const stopBatchLoading = useSelector(selectStopBatchLoading); const redriveBatchLoading = useSelector(selectRedriveBatchLoading); - console.log('redriveBatchLoading: ', redriveBatchLoading) const dispatch = useDispatch();