matt-dray / rostrum-blog

:memo::bug: Blog: superseded source code for rostrum.blog
Other
6 stars 3 forks source link

Embedded HTML doesn't work well on mobile #10

Closed matt-dray closed 5 years ago

matt-dray commented 5 years ago

Embedded HTML pages don't work well when viewed on mobile. I tried to do this for the R training featuring Pokemon post and it required scrolling all the way down the full embedded page before you can reach the bottom of the post.

This isn't a problem for displaying slides as in the Crosstalk in memes post, but the embedding area is too wide for mobile screens.

Solution: work out how to force embedded frame to 100% wide and limit height.

matt-dray commented 5 years ago

Removed the embedded training doc from the R training post for now.

matt-dray commented 5 years ago

knitr::include_url() has a height argument.

matt-dray commented 5 years ago

Maybe just don't do it in future.