UI update for room details (#2831)

This commit is contained in:
Mauro
2024-05-10 17:58:35 +02:00
committed by GitHub
parent 711c65f800
commit ce2de325ac
49 changed files with 282 additions and 113 deletions

View File

@@ -56,12 +56,7 @@ struct JoinRoomScreen: View {
}
if let memberCount = context.viewState.roomDetails?.memberCount {
Label("\(memberCount)", icon: \.userProfile, iconSize: .small, relativeTo: .compound.bodySMSemibold)
.font(.compound.bodySMSemibold)
.foregroundStyle(.compound.textSecondary)
.padding(4)
.background(Capsule().fill(.compound.bgSubtleSecondary))
.labelStyle(.custom(spacing: 4))
BadgeLabel(title: "\(memberCount)", icon: \.userProfile, isHighlighted: false)
}
if let topic = context.viewState.roomDetails?.topic {