Status actions: Bigger tap target

This commit is contained in:
Thomas Ricouard 2024-01-05 20:33:47 +01:00
parent a3f29aa15b
commit 91f0df0f26
2 changed files with 7 additions and 1 deletions

View file

@ -95,7 +95,6 @@ public struct StatusRowView: View {
StatusRowActionsView(viewModel: viewModel)
.tint(isFocused ? theme.tintColor : .gray)
.contentShape(Rectangle())
.padding(.top, 6)
}
if isFocused, !isCompact {

View file

@ -143,6 +143,8 @@ struct StatusRowActionsView: View {
action.image(dataController: statusDataController)
.font(.scaledBody)
}
.padding(.vertical, 6)
.padding(.trailing, 8)
.buttonStyle(.statusAction())
.accessibilityElement(children: .combine)
.accessibilityLabel("status.action.share-link")
@ -154,6 +156,8 @@ struct StatusRowActionsView: View {
action.image(dataController: statusDataController)
.font(.scaledBody)
}
.padding(.vertical, 6)
.padding(.trailing, 8)
.buttonStyle(.statusAction())
.accessibilityElement(children: .combine)
.accessibilityLabel("status.action.share-link")
@ -170,6 +174,7 @@ struct StatusRowActionsView: View {
}
} label: {
Label("", systemImage: "ellipsis")
.padding(.vertical, 6)
}
.menuStyle(.button)
.foregroundStyle(.secondary)
@ -216,6 +221,8 @@ struct StatusRowActionsView: View {
.monospacedDigit()
}
}
.padding(.vertical, 6)
.padding(.trailing, 8)
.contentShape(Rectangle())
}
.buttonStyle(