petridish icon indicating copy to clipboard operation
petridish copied to clipboard

Allow scrolling in long TOC

Open peterdesmet opened this issue 2 years ago • 2 comments

Cf. https://www.tdwg.org/conferences/2022/session-list/ and https://aloftdata.eu/radars/

peterdesmet avatar Dec 06 '22 11:12 peterdesmet

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.

peterdesmet avatar Apr 20 '23 11:04 peterdesmet

This should be disabled on small screens.

peterdesmet avatar Apr 26 '23 22:04 peterdesmet