fix: expand room short badge area

This commit is contained in:
zhx 2026-05-18 12:36:47 +08:00
parent 79ec634ba0
commit 5be1f05899

View File

@ -584,7 +584,11 @@ class _RoomUserInfoCardState extends State<RoomUserInfoCard> {
SocialChatUserProfileManager ref, SocialChatUserProfileManager ref,
SocialChatUserProfile? profile, SocialChatUserProfile? profile,
) { ) {
return SCUserBadgeStrip( return SizedBox(
width: double.infinity,
child: Padding(
padding: EdgeInsets.symmetric(horizontal: 10.w),
child: SCUserBadgeStrip(
userId: userId, userId: userId,
fallbackBadges: _roomCardFallbackBadges(ref, profile), fallbackBadges: _roomCardFallbackBadges(ref, profile),
displayScope: SCUserBadgeDisplayScope.short, displayScope: SCUserBadgeDisplayScope.short,
@ -595,6 +599,8 @@ class _RoomUserInfoCardState extends State<RoomUserInfoCard> {
maxBadges: 12, maxBadges: 12,
wrap: false, wrap: false,
reserveSpace: false, reserveSpace: false,
),
),
); );
} }