Add follow toggles to tag chips on detail views

TagChip gains a followable mode that renders a small toggle inside the
chip: '+' follows the tag, '✓' (click to unfollow) once followed, and a
red marker with the reason as its title when e621 rejects it. Enabled on
the library detail's e621 metadata card (matched posts) and on online
post detail tags; guests see plain chips and the label click keeps
working beside the toggle.
This commit is contained in:
2026-09-17 14:12:46 -05:00
parent 03dd235f3a
commit 4585a8ac43
4 changed files with 93 additions and 1 deletions
@@ -403,6 +403,7 @@ export function OnlineDetail({ postId }: { postId: number }) {
key={tag}
tag={tag}
category={category}
followable
onClick={() =>
navigate(`/online?tags=${encodeURIComponent(tag)}`)
}