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) StatusRowActionsView(viewModel: viewModel)
.tint(isFocused ? theme.tintColor : .gray) .tint(isFocused ? theme.tintColor : .gray)
.contentShape(Rectangle()) .contentShape(Rectangle())
.padding(.top, 6)
} }
if isFocused, !isCompact { if isFocused, !isCompact {

View file

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