From 25ff7abe7f1ad7542995a0ecefadb29efc518a93 Mon Sep 17 00:00:00 2001 From: Skorpios Date: Sat, 8 Mar 2025 16:44:52 -0800 Subject: [PATCH] refactored all the hardcoded absolute dimension values and made them into relative values that reference the theme. --- .../NotificationIntegrationModal.jsx | 35 ++++++++++++++----- 1 file changed, 26 insertions(+), 9 deletions(-) diff --git a/src/Components/NotificationIntegrationModal/NotificationIntegrationModal.jsx b/src/Components/NotificationIntegrationModal/NotificationIntegrationModal.jsx index d8955f18e..2522105a3 100644 --- a/src/Components/NotificationIntegrationModal/NotificationIntegrationModal.jsx +++ b/src/Components/NotificationIntegrationModal/NotificationIntegrationModal.jsx @@ -175,24 +175,30 @@ const NotificationIntegrationModal = ({ maxWidth="md" sx={{ '& .MuiDialog-paper': { - maxWidth: '775px' + width: `calc(90% - ${theme.spacing(40)})`, + maxWidth: theme.breakpoints.values.md } }} > - + {/* Left sidebar with tabs */} Add or edit notifications @@ -205,13 +211,22 @@ const NotificationIntegrationModal = ({ aria-label="Notification tabs" > {notificationTypes.map((type) => ( - + ))} {/* Right side content */} - + {notificationTypes.map((type, index) => ( Save