diff --git a/front-end/src/components/composite/downloadModal/downloadModal.module.scss b/front-end/src/components/composite/downloadModal/downloadModal.module.scss index e1d5690b..8c874e5f 100644 --- a/front-end/src/components/composite/downloadModal/downloadModal.module.scss +++ b/front-end/src/components/composite/downloadModal/downloadModal.module.scss @@ -14,11 +14,41 @@ } .tableWrapper { - height: 35rem; + height: 30rem; @include mixins.scrollbar-dark; } +} - .submitButton { - margin-top: 1.25rem; +/* Responsive styles for smaller desktop windows */ +@media screen and (max-width: 1400px) { + .downloadModal { + width: 60rem; + + .tableWrapper { + height: 30rem; + } + } +} + +@media screen and (max-width: 1024px) { + .downloadModal { + width: 50rem; + padding: 0 1.5rem; + + .tableWrapper { + height: 30rem; + } + } +} + +@media screen and (max-width: 768px) { + .downloadModal { + width: 90vw; + max-width: 35rem; + padding: 0 1rem; + + .tableWrapper { + height: 20rem; + } } } \ No newline at end of file diff --git a/front-end/src/components/composite/downloadModal/downloadModal.tsx b/front-end/src/components/composite/downloadModal/downloadModal.tsx index 4fda6cf8..6c2d97ba 100644 --- a/front-end/src/components/composite/downloadModal/downloadModal.tsx +++ b/front-end/src/components/composite/downloadModal/downloadModal.tsx @@ -1,4 +1,5 @@ import styles from './downloadModal.module.scss'; +import baseModalStyles from '@components/ui/baseModal/BaseModal.module.scss'; import { BaseModal } from '@components/ui/baseModal/BaseModal'; import { FileTable } from '@components/ui/fileTable/FileTable'; import { Button } from '@components/ui/button/Button'; @@ -61,7 +62,7 @@ export const DownloadModal = ({ onClose, isOpen }: DownloadModalProps) => { ); -}; - +}; \ No newline at end of file diff --git a/front-end/src/components/composite/uploadModal/uploadModal.module.scss b/front-end/src/components/composite/uploadModal/uploadModal.module.scss index fdf3856d..40a0fc3f 100644 --- a/front-end/src/components/composite/uploadModal/uploadModal.module.scss +++ b/front-end/src/components/composite/uploadModal/uploadModal.module.scss @@ -1,19 +1,30 @@ @use '@styles/_fonts'; + .uploadModal { display: flex; flex-direction: column; align-items: center; width: 40rem; - height: 34rem; padding: 0 2rem; .title { all: unset; @include fonts.title-large; } +} + +@media screen and (max-width: 1024px) { + .uploadModal { + width: 35rem; + padding: 0 1.5rem; + } +} - .submitButton { - margin-top: 1.25rem; +@media screen and (max-width: 768px) { + .uploadModal { + width: 90vw; + max-width: 26rem; + padding: 0 1rem; } } \ No newline at end of file diff --git a/front-end/src/components/composite/uploadModal/uploadModal.tsx b/front-end/src/components/composite/uploadModal/uploadModal.tsx index 5e3580bd..2b7e0975 100644 --- a/front-end/src/components/composite/uploadModal/uploadModal.tsx +++ b/front-end/src/components/composite/uploadModal/uploadModal.tsx @@ -9,6 +9,7 @@ import { useFiles } from '@lib/files/useFiles'; import { showErrorToast, showSuccessToast } from '@components/ui/toastNotification/ToastNotification'; import { rightArrowIcon } from '@assets/icons'; import styles from './uploadModal.module.scss'; +import baseModalStyles from '@components/ui/baseModal/BaseModal.module.scss'; interface UploadModalProps { isOpen: boolean; @@ -80,7 +81,7 @@ export const UploadModal = ({ isOpen, onClose }: UploadModalProps) => {