Skip to content

Commit 785810a

Browse files
committed
add docs loading...
1 parent e87b065 commit 785810a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pages/docs/index.html

+4-2
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@
8888
}
8989
.markdown-body {
9090
padding: 32px 16px;
91+
92+
min-height: 100vh;
9193
}
9294
.sc-scrollbar::-webkit-scrollbar {
9395
width: 8px;
@@ -325,6 +327,8 @@
325327

326328
constructor() {
327329
this.$root.classList.add("markdown-body");
330+
this.$root.innerHTML = "loading...";
331+
document.body.appendChild(this.$root);
328332
}
329333

330334
cache = {};
@@ -345,8 +349,6 @@
345349

346350
mount() {
347351
this.$root.innerHTML = this.html_content;
348-
document.body.appendChild(this.$root);
349-
350352
this.indexer.render();
351353
}
352354

0 commit comments

Comments
 (0)