pretalx / schedule

The pretalx schedule component.
3 stars 4 forks source link

fix: auto-adjust schedule format for any number of rooms #16

Closed MikkCZ closed 1 year ago

MikkCZ commented 1 year ago

fix https://github.com/pretalx/pretalx/issues/1464

Well, technically it will be fixed when the updated schedule is in the main repository.

rashfael commented 1 year ago

We actually want and need the grid to overflow and scroll horizontally. Falling back to a list when the grid does not completely fit isn't an option, especially for schedules with a lot of rooms. If I understand your code correctly, schedules like this https://pretalx.com/pyconuk-2019/schedule/ will basically never show the grid, even on ultrawide screens.

As for your ResizeObserver code: We allow either for a scrolling parent or for the whole document to scroll (like most websites do). In the second case, we need to listen to the window resize event, since the body will not change size when the window resizes.