From d1788e9e9793148675be92f3bc48d14f1121d4f6 Mon Sep 17 00:00:00 2001 From: Vencislav Atanasov Date: Sat, 21 Sep 2024 23:21:09 +0300 Subject: [PATCH] Fix schedule rendering --- src/Schedule.jsx | 79 +++++++++++++++++++++++++---------------------- src/Schedule.scss | 1 + 2 files changed, 43 insertions(+), 37 deletions(-) diff --git a/src/Schedule.jsx b/src/Schedule.jsx index 3b6ca16..1868655 100644 --- a/src/Schedule.jsx +++ b/src/Schedule.jsx @@ -35,42 +35,47 @@ export default function Schedule({ return (<> {isLoading && <>Loading... }
- {halls && - - - {header.map(hall => )} - - - - {rows.map(row => - {row.cells.map(cell => )} - )} - - - - {header.map(hall => )} - - -
{hall.name}
- -
{hall.name}
} -
- {tracks && - - {Object.entries(tracks).filter(([, track]) => - !isTrackHidden(track) - ).map(([trackId, track]) => - - )} - {Object.entries(langs).map(([code, name]) => - - )} - -
{track.name[lang]}
{name}
} + {header && <> + + + + {header.map(hall => )} + + + + {rows.map(row => + {row.cells.map(cell => )} + )} + + + + {header.map(hall => )} + + +
{hall.name}
+ +
{hall.name}
+
+ } + {tracks && <> + + + {Object.entries(tracks).filter(([, track]) => + !isTrackHidden(track) + ).map(([trackId, track]) => + + )} + {Object.entries(langs).map(([code, name]) => + + )} + +
{track.name[lang]}
{name}
+
+ } {events && tracks && Object.entries(events).map(([eventId, event]) =>

{event.title} @@ -95,7 +100,7 @@ export default function Schedule({ Submit feedback

-
+
)} {speakers && <>
diff --git a/src/Schedule.scss b/src/Schedule.scss index da54618..c012dc4 100644 --- a/src/Schedule.scss +++ b/src/Schedule.scss @@ -1,5 +1,6 @@ .schedule { table { + text-align: center; width: 100%; font-size: 0.8em; margin: 0 0 3em 0;