Skip to content

Commit 83f797c

Browse files
committed
fix: fix show the loading text
1 parent 6bb694f commit 83f797c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -207,12 +207,12 @@
207207

208208
const container = document.getElementById("loading-media");
209209
const content = lang === "ja"
210-
? `<img src="loading-animation-ja.svg" loading="eager" fetchpriority="high" style="width: 100%; height: 100%; object-fit: contain;" alt="Loading animation">`
211-
: `<video loop autoplay muted playsinline fetchpriority="high" style="width: 100%; height: 100%; object-fit: contain;">
210+
? `<img src="loading-animation-ja.svg" loading="eager" fetchpriority="high" style="width: 70%; height: 90%; object-fit: contain;" alt="Loading animation">`
211+
: `<video loop autoplay muted playsinline fetchpriority="high" style="width: 90%; height: 100%; object-fit: contain;">
212212
<source src="loading-animation.webm" type="video/webm">
213213
<source src="loading-animation.mp4" type="video/mp4">
214214
</video>`;
215-
container.innerHTML = `<div class="media-wrapper" style="width: 100%; aspect-ratio: 16/9; display: flex; justify-content: center; align-items: center;">${content}</div>`;
215+
container.innerHTML = `<div class="media-wrapper" style="width: 100%; aspect-ratio: 16/9; max-height: 500px; display: flex; justify-content: center; align-items: center;">${content}</div>`;
216216
};
217217

218218
loadL10nSplashScreen();
@@ -233,7 +233,7 @@
233233
loadingText.textContent = _("Loading Complete!");
234234
loadingText.style.opacity = 1;
235235
}, 6000);
236-
}, 4000);
236+
}, 3000);
237237
});
238238

239239
</script>

0 commit comments

Comments
 (0)