Reveal.js: A fix for image and text height overflow

Created on 10 Mar 2019  路  5Comments  路  Source: hakimel/reveal.js

I've got it working by injecting a CSS stylesheet with JavaScript.

(document.getElementById("jsStyle") as HTMLStyleElement).innerHTML = `
img, video, iframe {
    height: ${window.innerHeight * 0.8}px !important;
    max-width: ${window.innerWidth * 0.8}px !important;
}

.present {
    max-height: ${window.innerHeight * 0.9}px;
    overflow-y: scroll;
}`;

Without this, it would look like this,

Screen Shot 2019-03-10 at 15 27 06
Screen Shot 2019-03-10 at 15 27 23

All 5 comments

Thanks for the idea. And I think you miss the