Files
mangaBookmark/backend/templates/list.html
T
sulthan b2aa814982 feat(web): updated tab, inline errors, card craft
Adds the Updated tab (series with an unread chapter) with its own empty
state, so "what's new" no longer means scanning the whole list.

A failed favourite/chapter/delete previously looked like an ignored tap:
htmx does not swap on a non-2xx response and nothing else said so. Errors
now surface inline on the card. The two per-card panels (chapter edit,
delete confirm) also close each other.

Mobile fixes, all measured at 360/390px rather than eyeballed:
.chapter-form and .confirm-row now wrap so the hint and the prompt take
their own row, and the number input shrinks (flex-basis 0) instead of
holding its ~20ch intrinsic width. Before this the Save button sat off
screen — 97px of page overflow at 390px, 127px at 360px — which broke
correcting a chapter number on the one device class this is built for.

Emoji glyphs replaced with inline SVG on currentColor: each rendered in a
different face at a different weight and colour, ignoring the card's own
type and colour system. No icon font or library.

Series with no scraped og:image render a title-initial monogram instead
of a blank rectangle that read as a cover still loading.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-27 00:29:34 +07:00

14 lines
418 B
HTML

{{define "list"}}
{{if .Items}}
{{range .Items}}{{template "card" .}}{{end}}
{{else if eq .Tab "fav"}}
<p class="empty">No favourites yet. Star a series to pin it here.</p>
{{else if eq .Tab "new"}}
<p class="empty">Nothing new. Every series is caught up to its latest chapter.</p>
{{else}}
<p class="empty">
Nothing here yet. Bookmarks appear once the userscript records a chapter.
</p>
{{end}}
{{end}}