]> BookStack Code Mirror - bookstack/blobdiff - resources/assets/js/components/overlay.js
orthography
[bookstack] / resources / assets / js / components / overlay.js
index 6984928bdd046bb453177d5dbdb4b246123d3819..6e7a598ac58027d739e7efd7a178ae9498bdda01 100644 (file)
@@ -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));