X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/2a069880cd8ebe6b821fd37a6087b34a6488966b..refs/pull/925/head:/resources/assets/js/components/overlay.js diff --git a/resources/assets/js/components/overlay.js b/resources/assets/js/components/overlay.js index 6984928bd..6e7a598ac 100644 --- a/resources/assets/js/components/overlay.js +++ b/resources/assets/js/components/overlay.js @@ -21,7 +21,7 @@ class Overlay { let targetOpacity = show ? (elapsedTime / duration) : 1-(elapsedTime / duration); this.container.style.opacity = targetOpacity; if (elapsedTime > duration) { - this.container.style.display = show ? 'display' : 'none'; + this.container.style.display = show ? 'flex' : 'none'; this.container.style.opacity = ''; } else { requestAnimationFrame(setOpacity.bind(this));