Remove the ... button and replace it with a thread indicator close #634

This commit is contained in:
Thomas Ricouard 2023-02-03 17:50:20 +01:00
parent 5f806d7a1b
commit 816eae2d40

View File

@ -201,8 +201,7 @@ public struct StatusRowView: View {
} }
.buttonStyle(.plain) .buttonStyle(.plain)
Spacer() Spacer()
menuButton threadIcon
.accessibilityHidden(true)
} }
.accessibilityElement() .accessibilityElement()
.accessibilityLabel(Text("\(status.account.displayName), \(status.createdAt.relativeFormatted)")) .accessibilityLabel(Text("\(status.account.displayName), \(status.createdAt.relativeFormatted)"))
@ -299,15 +298,15 @@ public struct StatusRowView: View {
} }
} }
private var menuButton: some View { @ViewBuilder
Menu { private var threadIcon: some View {
contextMenu if viewModel.status.reblog?.inReplyToAccountId != nil || viewModel.status.inReplyToAccountId != nil {
} label: { Image(systemName: "bubble.left.and.bubble.right")
Image(systemName: "ellipsis") .resizable()
.frame(width: 30, height: 30) .aspectRatio(contentMode: .fit)
.frame(width: 15)
.foregroundColor(.gray)
} }
.foregroundColor(.gray)
.contentShape(Rectangle())
} }
@ViewBuilder @ViewBuilder