From de3aa8407868927e520ca83e1925d3f433ce81c3 Mon Sep 17 00:00:00 2001 From: joshuasilva414 Date: Wed, 23 Oct 2024 13:24:16 -0500 Subject: [PATCH 1/2] optimize mobile --- apps/web/src/app/dash/schedule/page.tsx | 4 +++- apps/web/src/app/dash/schedule/schedule-timeline.tsx | 11 +++++++---- apps/web/src/app/sign-in/[[...sign-in]]/page.tsx | 2 +- 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/apps/web/src/app/dash/schedule/page.tsx b/apps/web/src/app/dash/schedule/page.tsx index b2b059c3..7efad155 100644 --- a/apps/web/src/app/dash/schedule/page.tsx +++ b/apps/web/src/app/dash/schedule/page.tsx @@ -12,7 +12,9 @@ export default async function Page() { const userTimeZone = getClientTimeZone(userTimeZoneHeaderKey); return ( <> -

Schedule

+

+ Schedule +

}> {/* */} diff --git a/apps/web/src/app/dash/schedule/schedule-timeline.tsx b/apps/web/src/app/dash/schedule/schedule-timeline.tsx index 6737ad25..96e53781 100644 --- a/apps/web/src/app/dash/schedule/schedule-timeline.tsx +++ b/apps/web/src/app/dash/schedule/schedule-timeline.tsx @@ -39,13 +39,16 @@ export default function ScheduleTimeline({ timezone, }: ScheduleTimelineProps) { return ( -
+
{Array.from(splitByDay(schedule).entries()).map( ([dayName, arr]): ReactNode => ( <> - + @@ -102,7 +105,7 @@ export function EventRow({ event, userTimeZone }: EventRowProps) { return ( - + @@ -105,7 +105,7 @@ export function EventRow({ event, userTimeZone }: EventRowProps) { return ( - +
-

+

{dayName}

{`${startTimeFormatted} - ${endTimeFormatted}`}{`${startTimeFormatted} - ${endTimeFormatted}`} Date: Thu, 24 Oct 2024 12:14:51 -0500 Subject: [PATCH 2/2] mobile tweaks --- apps/web/src/app/dash/schedule/schedule-timeline.tsx | 6 +++--- apps/web/src/app/sign-in/[[...sign-in]]/page.tsx | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/web/src/app/dash/schedule/schedule-timeline.tsx b/apps/web/src/app/dash/schedule/schedule-timeline.tsx index 96e53781..e55db9b8 100644 --- a/apps/web/src/app/dash/schedule/schedule-timeline.tsx +++ b/apps/web/src/app/dash/schedule/schedule-timeline.tsx @@ -47,7 +47,7 @@ export default function ScheduleTimeline({ <>
-

+

{dayName}

{`${startTimeFormatted} - ${endTimeFormatted}`}{`${startTimeFormatted} - ${endTimeFormatted}`}