Fix schedule rendering

This commit is contained in:
Vencislav Atanasov 2024-09-21 23:21:09 +03:00
parent b53de67c6f
commit d1788e9e97
2 changed files with 43 additions and 37 deletions

View File

@ -35,7 +35,8 @@ export default function Schedule({
return (<> return (<>
{isLoading && <>Loading... <progress value={loadingProgress} /></>} {isLoading && <>Loading... <progress value={loadingProgress} /></>}
<div className="schedule"> <div className="schedule">
{halls && <table style={{ {header && <>
<table style={{
textAlign: 'center', textAlign: 'center',
}}> }}>
<thead> <thead>
@ -55,9 +56,11 @@ export default function Schedule({
{header.map(hall => <th key={hall.id}>{hall.name}</th>)} {header.map(hall => <th key={hall.id}>{hall.name}</th>)}
</tr> </tr>
</tfoot> </tfoot>
</table>} </table>
<div className="separator"/> <div className="separator"/>
{tracks && <table style={{ </>}
{tracks && <>
<table style={{
textAlign: 'center', textAlign: 'center',
}}> }}>
<tbody> <tbody>
@ -70,7 +73,9 @@ export default function Schedule({
<td className={'schedule-'.concat(code)}>{name}</td> <td className={'schedule-'.concat(code)}>{name}</td>
</tr>)} </tr>)}
</tbody> </tbody>
</table>} </table>
<div className="separator" />
</>}
{events && tracks && Object.entries(events).map(([eventId, event]) => <section key={eventId} id={'lecture-'.concat(eventId)}> {events && tracks && Object.entries(events).map(([eventId, event]) => <section key={eventId} id={'lecture-'.concat(eventId)}>
<p> <p>
<strong>{event.title}</strong> <strong>{event.title}</strong>
@ -95,7 +100,7 @@ export default function Schedule({
<a href={event.feedback_url}>Submit feedback</a> <a href={event.feedback_url}>Submit feedback</a>
</strong> </strong>
</p> </p>
<hr /> <div className="separator" />
</section>)} </section>)}
{speakers && <> {speakers && <>
<div> <div>

View File

@ -1,5 +1,6 @@
.schedule { .schedule {
table { table {
text-align: center;
width: 100%; width: 100%;
font-size: 0.8em; font-size: 0.8em;
margin: 0 0 3em 0; margin: 0 0 3em 0;