From 9ca6c4e88389e33964b4dc6249035d9a2a8579d5 Mon Sep 17 00:00:00 2001 From: Starstrike Date: Thu, 1 May 2025 15:08:22 -0400 Subject: [PATCH] Improve mobile responsiveness: Fix scrolling and button wrapping issues - Changed container position, added button wrapping, responsive padding and table scrolling --- frontend/src/components/EventAdmin.tsx | 45 ++++++++++++++++++++------ frontend/src/components/EventView.tsx | 26 ++++++++++----- 2 files changed, 54 insertions(+), 17 deletions(-) diff --git a/frontend/src/components/EventAdmin.tsx b/frontend/src/components/EventAdmin.tsx index 495f38f..164df17 100644 --- a/frontend/src/components/EventAdmin.tsx +++ b/frontend/src/components/EventAdmin.tsx @@ -435,25 +435,30 @@ const EventAdmin: React.FC = () => { backgroundPosition: 'center', backgroundRepeat: 'no-repeat', backgroundAttachment: 'fixed', - position: 'fixed', - top: 0, - left: 0, - right: 0, - bottom: 0, + position: 'relative', overflowY: 'auto', py: 4, }} > - + {event.title} - Admin - + @@ -461,6 +466,10 @@ const EventAdmin: React.FC = () => { variant="outlined" onClick={handleUpdateInfoClick} startIcon={} + sx={{ + minWidth: 'fit-content', + whiteSpace: 'nowrap' + }} > Update Info @@ -468,6 +477,10 @@ const EventAdmin: React.FC = () => { variant="outlined" startIcon={} onClick={() => setManageItemsDialogOpen(true)} + sx={{ + minWidth: 'fit-content', + whiteSpace: 'nowrap' + }} > Manage Items @@ -476,6 +489,10 @@ const EventAdmin: React.FC = () => { color="error" startIcon={} onClick={() => setDeleteEventDialogOpen(true)} + sx={{ + minWidth: 'fit-content', + whiteSpace: 'nowrap' + }} > Delete Event @@ -504,7 +521,12 @@ const EventAdmin: React.FC = () => { Items Status - + Still Needed: @@ -551,7 +573,12 @@ const EventAdmin: React.FC = () => { RSVPs ({rsvps.length}) - + diff --git a/frontend/src/components/EventView.tsx b/frontend/src/components/EventView.tsx index 17e0220..6159edb 100644 --- a/frontend/src/components/EventView.tsx +++ b/frontend/src/components/EventView.tsx @@ -142,25 +142,30 @@ const EventView: React.FC = () => { backgroundPosition: 'center', backgroundRepeat: 'no-repeat', backgroundAttachment: 'fixed', - position: 'fixed', - top: 0, - left: 0, - right: 0, - bottom: 0, + position: 'relative', overflowY: 'auto', py: 4, }} > - + {event.title} - RSVPs - + @@ -235,7 +240,12 @@ const EventView: React.FC = () => { RSVPs ({rsvps.length}) - +