Remove some button from status row

This commit is contained in:
Thomas Ricouard 2024-02-14 10:48:17 +01:00
parent 21d9fd7b59
commit 2d988d48c1
2 changed files with 13 additions and 11 deletions

View file

@ -75,11 +75,13 @@ public struct StatusRowView: View {
if !isCompact,
theme.avatarPosition == .leading
{
Button {
viewModel.navigateToAccountDetail(account: viewModel.finalStatus.account)
} label: {
AvatarView(viewModel.finalStatus.account.avatar)
}
AvatarView(viewModel.finalStatus.account.avatar)
.accessibility(addTraits: .isButton)
.contentShape(Circle())
.hoverEffect()
.onTapGesture {
viewModel.navigateToAccountDetail(account: viewModel.finalStatus.account)
}
}
VStack(alignment: .leading, spacing: .statusComponentSpacing) {
if !isCompact {

View file

@ -15,12 +15,12 @@ struct StatusRowHeaderView: View {
let viewModel: StatusRowViewModel
var body: some View {
HStack(alignment: theme.avatarPosition == .top ? .center : .top) {
Button {
viewModel.navigateToAccountDetail(account: viewModel.finalStatus.account)
} label: {
accountView
}
.buttonStyle(.plain)
accountView
.hoverEffect()
.accessibilityAddTraits(.isButton)
.onTapGesture {
viewModel.navigateToAccountDetail(account: viewModel.finalStatus.account)
}
Spacer()
if !redactionReasons.contains(.placeholder) {
dateView