feat(single): align author bar follow and reward actions with the site flows

- guests get the sign-in trigger instead of a redirect to the login page,
  for both follow and wallet reward controls
- follow requests swap the label for an inline loader and block a second
  submit; the followed state uses the .actived hook
- follower counts sync through data-follow-count on the user homepage
  (the previous selector matched nothing) and only for the viewed profile
- reward button uses the secondary action colour; the reward template is
  only rendered for signed-in visitors
- drop the unused author-hero aria-disabled rule and stale wording in the
  touched comments

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
kate522andClaude Fable 5 committed 2026-11-04 13:34:34 +08:00
1 parent 8ad5ef9aff
commit d40906b4a3
13 files changed
+148 -56

No files matched your search

+16
View File
@@ -251,6 +251,22 @@ main.container,
.user-card.author .user-name > name > .follow {
flex-shrink: 0;
}
/* Follow control: the pending request swaps the label for an inline loader
* and blocks a second submit. The followed state is carried by .actived. */
[data-jio-follow][aria-disabled="true"] {
cursor: no-drop;
opacity: 0.6;
}
[data-jio-follow][aria-disabled="true"]:hover {
opacity: 0.6;
}
[data-jio-follow] .loading {
vertical-align: -0.1em;
}
.jio-author-hero__name,
.uc-header__name {
display: inline-flex;