diff options
| author | Joe Mou <dev@mou.fo> | 2026-08-11 12:54:27 -0400 |
|---|---|---|
| committer | Joe Mou <dev@mou.fo> | 2026-08-11 13:04:49 -0400 |
| commit | d2c94ae32ff8d88f438d0e3348ca4f4a81f7bdd7 (patch) | |
| tree | 4ee4da82a6fb27241e116b76922177c7b98851cc /views/_tree.eta | |
| parent | 0a39a7a981f619ac64fdeb26294c7cfd4f110a1a (diff) | |
Mitigate placeholder layout shift
Diffstat (limited to 'views/_tree.eta')
| -rw-r--r-- | views/_tree.eta | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/views/_tree.eta b/views/_tree.eta index 2eb445f..fc7707b 100644 --- a/views/_tree.eta +++ b/views/_tree.eta @@ -1,7 +1,12 @@ <%~ include("./_nav.eta", {...it, isTree: true}) %> <% const commitPath = it.path && it.path !== "/" ? it.path : ""; %> -<div class="placeholder box" data-src="/api/<%= it.repo.owner %>/<%= it.repo.name %>/latest-commit/<%= it.branch %>/<%= commitPath %>">Loading latest commit…</div> +<div class="placeholder commit box" data-src="/api/<%= it.repo.owner %>/<%= it.repo.name %>/latest-commit/<%= it.branch %>/<%= commitPath %>"> + <div> + <div>…</div> + <div class="commit-author">…</div> + </div> +</div> <table> <% for (const item of it.items) { %> |
