Skip to content

Commit

Permalink
Better handling talk height in grid for HoL
Browse files Browse the repository at this point in the history
Increasing HoL height on schedule (includes handle of special case for lunch time when workshops is across 3 talks and not only 2)
  • Loading branch information
fcamblor committed Sep 16, 2019
1 parent 4be8d43 commit e86c655
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/pages/Schedule.page.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class Schedule extends Component {
{all_talks.filter(talk => talk.startTime === slot).sort(compareRoom).map((talk, j) =>
<Session
key={j}
style={{ gridArea: `${i + 1}/ ${j + 1} / ${talk.format === "Hands on lab" ? i + 3 : i + 1} / ${all_talks.filter(talk => talk.startTime === slot).length === 1 ? (talk.startTime === '12:30' || talk.startTime === '11:00' || talk.startTime === '15:00' ? 5 : 6) : j + 1}` }}
style={{ gridArea: `${i + 1}/ ${j + 1} / ${talk.format === "Hands on lab" ? i + (talk.startTime === '12:15'?5:4) : i + 1} / ${all_talks.filter(talk => talk.startTime === slot).length === 1 ? (talk.startTime === '12:30' || talk.startTime === '11:00' || talk.startTime === '15:00' ? 5 : 6) : j + 1}` }}
talk={talk} />
)
}
Expand Down

0 comments on commit e86c655

Please sign in to comment.