wordpress-activitypub icon indicating copy to clipboard operation
wordpress-activitypub copied to clipboard

Reactions: Fix avatar display bugs

Open obenland opened this issue 7 months ago • 0 comments

Fixes margins between avatars and details button, when there are hidden avatars:

Before After
Screenshot 2025-06-18 at 2 56 47 PM Screenshot 2025-06-18 at 2 56 34 PM

Fixes hidden avatars when there are fewer Likes than reposts:

Before After
Screenshot 2025-06-18 at 2 28 21 PM Screenshot 2025-06-18 at 3 01 37 PM

Proposed changes:

  • Adjust styles to maintain consistent margin between avatars and detail button.
  • Add comment type context to decide how many avatars to show.

Testing instructions:

  • On a test post with a different amount of Likes and Reposts, make sure all avatars are displayed as expected.
  • Make sure the distance between avatars and button is consistent.

Changelog entry

  • [x] Automatically create a changelog entry from the details below.
Changelog Entry Details

Significance

  • [x] Patch
  • [ ] Minor
  • [ ] Major

Type

  • [ ] Added - for new features
  • [ ] Changed - for changes in existing functionality
  • [ ] Deprecated - for soon-to-be removed features
  • [ ] Removed - for now removed features
  • [x] Fixed - for any bug fixes
  • [ ] Security - in case of vulnerabilities

Message

The amount of avatars shown in the Reactions block no longer depends on the amount of likes, but is comment type agnostic.

obenland avatar Jun 18 '25 20:06 obenland