minor refactor on profile picture view size

pull/874/head
Ryan Zhao 2 years ago
parent a0ea28234f
commit 16db56572b

@ -309,15 +309,17 @@ struct MessageInfoView: View {
profileIcon: (messageViewModel.isSenderOpenGroupModerator ? .crown : .none) profileIcon: (messageViewModel.isSenderOpenGroupModerator ? .crown : .none)
) )
let size: ProfilePictureView.Size = .list
if let info: ProfilePictureView.Info = info { if let info: ProfilePictureView.Info = info {
ProfilePictureSwiftUI( ProfilePictureSwiftUI(
size: .list, size: size,
info: info, info: info,
additionalInfo: additionalInfo additionalInfo: additionalInfo
) )
.frame( .frame(
width: 46, width: size.viewSize,
height: 46, height: size.viewSize,
alignment: .topLeading alignment: .topLeading
) )
} }

Loading…
Cancel
Save