diff --git a/index.html b/index.html index b5116b25f..461f5acc1 100644 --- a/index.html +++ b/index.html @@ -58,7 +58,7 @@ display: grid; width: calc(5em * 0.5 * var(--scale)); height: calc(8em * 0.5 * var(--scale)); - margin-left: 5.1em; + margin-left: 4.1em; z-index: 2; grid-template-rows: repeat(8, 1fr); grid-template-columns: repeat(5, 1fr); @@ -93,7 +93,7 @@ } #status { - margin-top: 0.5em; + margin-top: 1em; line-height: 2; width: 100%; text-align: center; diff --git a/src/App.js b/src/App.js index d2dd35c7c..e87108dd9 100644 --- a/src/App.js +++ b/src/App.js @@ -146,7 +146,11 @@ export default { }, removeSplash () { document.querySelector('#status').textContent = this.$t('splash.fun_' + Math.ceil(Math.random() * 4)) - document.querySelector('#splash').classList.add('hidden') + const splashscreenRoot = document.querySelector('#splash') + splashscreenRoot.addEventListener('transitionend', () => { + splashscreenRoot.remove() + }) + splashscreenRoot.classList.add('hidden') document.querySelector('#app').classList.remove('hidden') } }