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 | 10f923b51e2844486651493b44974e418a2be6d9 (patch) | |
| tree | 76e2c77e52aca6230f86cb8c2a2995dc9a588e20 /cgithub/views/_tree.eta | |
| parent | 9731ebd1bece1187f943a29da474f4aed6e7ee3b (diff) | |
Mitigate placeholder layout shift
Diffstat (limited to 'cgithub/views/_tree.eta')
| -rw-r--r-- | cgithub/views/_tree.eta | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/cgithub/views/_tree.eta b/cgithub/views/_tree.eta index 2eb445f..fc7707b 100644 --- a/cgithub/views/_tree.eta +++ b/cgithub/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) { %> |
