mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 21:33:26 +00:00
Add a rounded rect border around space avatars
.. and also refactor the LoadableAvatarImage to stop having knowledge of spaces and instead focus on generic shapes.
This commit is contained in:
committed by
Stefan Ceriu
parent
20a84dd896
commit
591ce3975b
@@ -60,7 +60,7 @@ struct RoomDetailsEditScreen: View {
|
||||
url: context.viewState.avatarURL,
|
||||
name: context.viewState.initialName,
|
||||
contentID: context.viewState.roomID,
|
||||
isSpace: context.viewState.isSpace,
|
||||
shape: context.viewState.isSpace ? .roundedRect : .circle,
|
||||
avatarSize: .user(on: .memberDetails),
|
||||
mediaProvider: context.mediaProvider)
|
||||
.accessibilityLabel(L10n.a11yEditAvatar)
|
||||
|
||||
+1
-1
@@ -64,7 +64,7 @@ struct UserDetailsEditScreen: View {
|
||||
url: context.viewState.selectedAvatarURL,
|
||||
name: context.viewState.currentDisplayName,
|
||||
contentID: context.viewState.userID,
|
||||
isSpace: false,
|
||||
shape: .circle,
|
||||
avatarSize: .user(on: .editUserDetails),
|
||||
mediaProvider: context.mediaProvider)
|
||||
.overlay(alignment: .bottomTrailing) {
|
||||
|
||||
Reference in New Issue
Block a user