From ba1cfea557f6ab5407a9792d92e6ed76c23793c4 Mon Sep 17 00:00:00 2001 From: chark1es Date: Sat, 8 Mar 2025 02:13:38 -0800 Subject: [PATCH] some changes --- .../dashboard/Officer_EventRequestForm.astro | 496 ++++++++++-------- .../EventRequestFormPreview.tsx | 16 +- 2 files changed, 282 insertions(+), 230 deletions(-) diff --git a/src/components/dashboard/Officer_EventRequestForm.astro b/src/components/dashboard/Officer_EventRequestForm.astro index 7fc73c4..2e5d7f0 100644 --- a/src/components/dashboard/Officer_EventRequestForm.astro +++ b/src/components/dashboard/Officer_EventRequestForm.astro @@ -25,267 +25,313 @@ let error: string | null = null; // This provides initial data for server-side rendering // Client-side will use IndexedDB for data management if (auth.isAuthenticated()) { - try { - const userId = auth.getUserId(); - if (userId) { - userEventRequests = await get.getAll( - Collections.EVENT_REQUESTS, - `requested_user="${userId}"`, - "-created", - ); + try { + const userId = auth.getUserId(); + if (userId) { + userEventRequests = await get.getAll( + Collections.EVENT_REQUESTS, + `requested_user="${userId}"`, + "-created" + ); + } + } catch (err) { + console.error("Failed to fetch user event requests:", err); + error = "Failed to load your event requests. Please try again later."; } - } catch (err) { - console.error("Failed to fetch user event requests:", err); - error = "Failed to load your event requests. Please try again later."; - } } ---
-
-

Event Request Form

-

- Submit your event request at least 6 weeks before your event. After - submitting, please notify PR and/or Coordinators in the #-events Slack - channel. -

-
-

This form includes sections for:

-
    -
  • PR Materials (if needed)
  • -
  • Event Details
  • -
  • TAP Form Information
  • -
  • AS Funding (if needed)
  • -
-

- Your progress is automatically saved as you fill out the form. -

+
+

Event Request Form

+

+ Submit your event request at least 6 weeks before your event. After + submitting, please notify PR and/or Coordinators in the #-events + Slack channel. +

+
+

This form includes sections for:

+
    +
  • PR Materials (if needed)
  • +
  • Event Details
  • +
  • TAP Form Information
  • +
  • AS Funding (if needed)
  • +
+

+ Your progress is automatically saved as you fill out the form. +

+
-
- - - - -
- - - diff --git a/src/components/dashboard/Officer_EventRequestForm/EventRequestFormPreview.tsx b/src/components/dashboard/Officer_EventRequestForm/EventRequestFormPreview.tsx index 3fa9632..e357b29 100644 --- a/src/components/dashboard/Officer_EventRequestForm/EventRequestFormPreview.tsx +++ b/src/components/dashboard/Officer_EventRequestForm/EventRequestFormPreview.tsx @@ -70,10 +70,13 @@ export const EventRequestFormPreviewModal: React.FC = () => { position: 'fixed', top: 0, left: 0, - width: '100%', - height: '100%', + width: '100vw', + height: '100vh', zIndex: 99999, - pointerEvents: isOpen ? 'auto' : 'none' + pointerEvents: isOpen ? 'auto' : 'none', + overflow: 'auto', + margin: 0, + padding: 0 }} > = ({ width: '100vw', height: '100vh', margin: 0, - padding: 0 + padding: 0, + overflow: 'auto' }} > = ({ onClick={(e) => e.stopPropagation()} style={{ position: 'relative', - zIndex: 100000 + zIndex: 100000, + maxWidth: '90vw', + width: '100%' }} >