mirror of
https://github.com/svemagie/indiekit-endpoint-activitypub.git
synced 2026-04-02 15:44:58 +02:00
feat: interaction counts on timeline cards (Release 5)
Extract reply/boost/like counts from AP Collections (getReplies, getLikes, getShares) and Mastodon API (replies_count, reblogs_count, favourites_count). Display counts next to interaction buttons with optimistic updates on like/boost actions. Confab-Link: http://localhost:8080/sessions/e9d666ac-3c90-4298-9e92-9ac9d142bc06
This commit is contained in:
@@ -763,6 +763,14 @@
|
||||
opacity: 0.6;
|
||||
}
|
||||
|
||||
/* Interaction counts */
|
||||
.ap-card__count {
|
||||
font-size: var(--font-size-xs);
|
||||
color: var(--color-on-offset);
|
||||
margin-left: 0.25rem;
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
|
||||
/* Error message */
|
||||
.ap-card__action-error {
|
||||
color: var(--color-error);
|
||||
|
||||
Reference in New Issue
Block a user