Fix avatar button and make mxid copyable. (#1678)

This commit is contained in:
Doug
2023-09-11 10:01:40 +01:00
committed by GitHub
parent bd4ee92124
commit 3db662b124
2 changed files with 3 additions and 0 deletions
@@ -37,6 +37,7 @@ struct AvatarHeaderView<Footer: View>: View {
avatarSize: avatarSize,
imageProvider: imageProvider)
}
.buttonStyle(.borderless) // Add a button style to stop the whole row being tappable.
Text(name ?? id)
.foregroundColor(.compound.textPrimary)
@@ -48,6 +49,7 @@ struct AvatarHeaderView<Footer: View>: View {
.foregroundColor(.compound.textSecondary)
.font(.compound.bodyLG)
.multilineTextAlignment(.center)
.textSelection(.enabled)
}
footer()