Skip to content

Commit

Permalink
Only use grid layout if lots of members
Browse files Browse the repository at this point in the history
Co-authored-by: Kevin Hahn <[email protected]>
  • Loading branch information
myieye and hahn-kev committed Jan 19, 2024
1 parent 19c6819 commit bfebaa8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@
{$t('project_page.members.title')}
</p>

<BadgeList grid>
<BadgeList grid={showMembers.length > TRUNCATED_MEMBER_COUNT}>
{#each showMembers as member}
{@const canManageMember = canManage && (member.user.id !== userId || isAdmin(user))}
<Dropdown disabled={!canManageMember}>
Expand Down

0 comments on commit bfebaa8

Please sign in to comment.