petridish
petridish copied to clipboard
Allow scrolling in long TOC
Cf. https://www.tdwg.org/conferences/2022/session-list/ and https://aloftdata.eu/radars/
This should be possible by adding max-height: 100vh;
and overflow-y: auto;
(already there) to the toc
element
https://github.com/peterdesmet/petridish/blob/a5f5e977a0319b4b667ce4714f2f1122912e6b4e/_sass/_toc.scss#L12
See https://stackoverflow.com/questions/66876410/how-to-make-sticky-element-scrollable. Ideally this does not add a scrollbar where not necessary.
This should be disabled on small screens.