feat: add loading fragment templates and optimize section triggers

This commit is contained in:
2026-06-04 11:28:34 +02:00
committed by Milas Holsting
parent 136afa05a5
commit 32d7301788
2 changed files with 42 additions and 3 deletions

View File

@@ -18,3 +18,15 @@
</div>
</div>
{{end}}
{{define "watch_order_loading"}}
<div
hx-get="/api/watch-order?animeId={{.AnimeID}}"
hx-trigger="load delay:1500ms"
>
<div class="mt-8 flex items-center gap-3 text-foreground-muted">
<div class="size-5 animate-spin rounded-full border-2 border-t-transparent border-accent"></div>
<span class="text-sm">Loading watch order sequence...</span>
</div>
</div>
{{end}}