]> BookStack Code Mirror - bookstack/blobdiff - resources/assets/js/components/overlay.js
Updated 'Spanish Argentina' translation.
[bookstack] / resources / assets / js / components / overlay.js
index 6984928bdd046bb453177d5dbdb4b246123d3819..2dbf4eb9a87995bbf1b29799383cc329649accd1 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));
@@ -36,4 +36,4 @@ class Overlay {
 
 }
 
-module.exports = Overlay;
\ No newline at end of file
+export default Overlay;
\ No newline at end of file