r-wasm / quarto-live

WebAssembly powered code blocks and exercises for both the R and Python languages in Quarto documents
https://r-wasm.github.io/quarto-live/
MIT License
128 stars 9 forks source link

If `format: revealjs` and there are `webr` cells on a slide, slide should be `scrollable` by default #67

Closed mine-cetinkaya-rundel closed 1 month ago

mine-cetinkaya-rundel commented 1 month ago

It's hard to predict how much space the output of a webr cell will be, so I'm finding myself adding the {.scrollable} class to every slide with a webr cell. And, of course, forgetting to do so every once in a while. It would be nice if the existence of a webr cell made the slide automatically scrollable. There may be reasons to not do this (either technical or not), but so far in my use-case, I can see it would be helpful.

georgestagg commented 1 month ago

Great idea, thanks! EDIT: Implemented in 926fb88.