mirror of
https://github.com/element-hq/element-x-ios.git
synced 2025-03-11 13:59:13 +00:00
User ID is shown also in the room members list (#2332)
This commit is contained in:
parent
01f42546e1
commit
5ff575eb4a
@ -88,5 +88,6 @@ struct RoomMembersListScreen_Previews: PreviewProvider, TestablePreview {
|
||||
NavigationStack {
|
||||
RoomMembersListScreen(context: viewModel.context)
|
||||
}
|
||||
.snapshot(delay: 1.0)
|
||||
}
|
||||
}
|
||||
|
@ -31,11 +31,16 @@ struct RoomMembersListScreenMemberCell: View {
|
||||
avatarSize: .user(on: .roomDetails),
|
||||
imageProvider: context.imageProvider)
|
||||
.accessibilityHidden(true)
|
||||
|
||||
VStack(alignment: .leading, spacing: 0) {
|
||||
Text(member.name ?? "")
|
||||
.font(.compound.bodyMDSemibold)
|
||||
.foregroundColor(.compound.textPrimary)
|
||||
.lineLimit(1)
|
||||
Text(member.id)
|
||||
.font(.compound.bodySM)
|
||||
.foregroundColor(.compound.textSecondary)
|
||||
.lineLimit(1)
|
||||
}
|
||||
}
|
||||
.frame(maxWidth: .infinity, alignment: .leading)
|
||||
.accessibilityElement(children: .combine)
|
||||
|
BIN
UnitTests/__Snapshots__/PreviewTests/test_roomMembersListMemberCell.1.png
(Stored with Git LFS)
BIN
UnitTests/__Snapshots__/PreviewTests/test_roomMembersListMemberCell.1.png
(Stored with Git LFS)
Binary file not shown.
BIN
UnitTests/__Snapshots__/PreviewTests/test_roomMembersListScreen.1.png
(Stored with Git LFS)
BIN
UnitTests/__Snapshots__/PreviewTests/test_roomMembersListScreen.1.png
(Stored with Git LFS)
Binary file not shown.
1
changelog.d/pr-2332.change
Normal file
1
changelog.d/pr-2332.change
Normal file
@ -0,0 +1 @@
|
||||
Added the user id in the room members list cells, to avoid ambiguity.
|
Loading…
x
Reference in New Issue
Block a user