mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 06:55:59 +00:00
Fix avatar button and make mxid copyable. (#1678)
This commit is contained in:
@@ -37,6 +37,7 @@ struct AvatarHeaderView<Footer: View>: View {
|
|||||||
avatarSize: avatarSize,
|
avatarSize: avatarSize,
|
||||||
imageProvider: imageProvider)
|
imageProvider: imageProvider)
|
||||||
}
|
}
|
||||||
|
.buttonStyle(.borderless) // Add a button style to stop the whole row being tappable.
|
||||||
|
|
||||||
Text(name ?? id)
|
Text(name ?? id)
|
||||||
.foregroundColor(.compound.textPrimary)
|
.foregroundColor(.compound.textPrimary)
|
||||||
@@ -48,6 +49,7 @@ struct AvatarHeaderView<Footer: View>: View {
|
|||||||
.foregroundColor(.compound.textSecondary)
|
.foregroundColor(.compound.textSecondary)
|
||||||
.font(.compound.bodyLG)
|
.font(.compound.bodyLG)
|
||||||
.multilineTextAlignment(.center)
|
.multilineTextAlignment(.center)
|
||||||
|
.textSelection(.enabled)
|
||||||
}
|
}
|
||||||
|
|
||||||
footer()
|
footer()
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
Fix avatar button size and make mxid copyable in Room/Member details screens.
|
||||||
Reference in New Issue
Block a user