Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIX: Member Highlights on Group Cards #22828

Merged
merged 1 commit into from Jul 28, 2023
Merged

Conversation

s3lase
Copy link
Contributor

@s3lase s3lase commented Jul 27, 2023

By default, only 10 members are highlighted on group cards. However, joining/leaving a big group via the buttons on the group card results in up to 50 members being highlighted. For large groups this causes the card to move off-screen.

This happens because, while the initial render explicitly fetches only 10 members, we don't seem to apply the same limit as part of the member reload performed when a user leaves/joins via the buttons on the card.

This PR fixes that by only making the first 10 users available for highlight regardless of the number of members loaded in the store.

Before

Screen Recording 2023-07-27 at 3 22 05 PM

After

Screen Recording 2023-07-27 at 3 15 37 PM

@s3lase s3lase force-pushed the fix/group-card-members-list branch from 7cb2906 to d29efa9 Compare July 27, 2023 15:40
By default, only 10 members are highlighted on group cards. However,
joining/leaving a big group via the buttons on the group card results in
up to 50 members being highlighted. For large groups, this causes the card
to move off-screen.

This happens because, while the initial render explicitly fetches only 10
members, we don't seem to apply the same limit as part of the member
reload performed when a user leaves/joins via the buttons on the card.

This PR fixes that by only making the first 10 users available for
highlight regardless of the number of members loaded in the store.
@s3lase s3lase force-pushed the fix/group-card-members-list branch from d29efa9 to 3d04014 Compare July 28, 2023 14:07
@s3lase s3lase merged commit e67fe1d into main Jul 28, 2023
13 checks passed
@s3lase s3lase deleted the fix/group-card-members-list branch July 28, 2023 14:33
@s3lase
Copy link
Contributor Author

s3lase commented Jul 28, 2023

Thanks @ZogStriP

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants