Web UI: Updated tab, inline errors, mobile card fixes #3
Reference in New Issue
Block a user
Delete Branch "web-ui-revamp"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Third pass on the password-gated web UI, on top of #1 and #2.
Updated tab
New
?tab=newtab listing only series with an unread published chapter, plus per-tab empty states for Favourites and Updated. Covered byTestUIListNewTab.Inline error feedback
htmx does not swap on a non-2xx response, so a failed favourite/chapter/delete looked like an ignored tap. Errors now render in a
.error-inlineslot on the card and clear after 5s. The chapter-edit form and delete-confirm row also close each other — only one per-card panel open at a time.Mobile fixes (P0)
.chapter-formheld three children on one unwrapped flex row, pushing Save off screen: 97px of page overflow at 390px, 127px at 360px. That broke correcting a chapter number on the primary device class..chapter-formand.confirm-rowwrap; hint and prompt take their own full-width row.chapter-form inputusesflex: 1 1 0; min-width: 0— withflex: 1(basis auto) a number input holds its ~20ch intrinsic width and refused to shrink, which pushed Save to a third rowwhite-space: nowrapon the confirm prompt alone reintroduced 26px of overflow; the full-width row is what actually fixes itVerified live:
document.body.scrollWidth <= window.innerWidthwith every chapter-form and confirm-row open, at 360/390/768/1280, light and dark.Icons
☆ ✎ 🗑 ▶replaced with hand-authored inline SVG oncurrentColor— the emoji font rendered each in a different face, weight, and colour, ignoring the card's own type and colour system..icon.on/.icon.danger/.primarykeep driving colour. No icon font or library added.No-cover empty state
Series whose source site gave no
og:imagerender a title-initial monogram (Bookmark.Initial()) instead of a blank--surface-2rectangle that read as a cover still loading. Shared between the card cover and the Continue-reading strip.Verification
go build ./... && go test ./...— pass