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
1 changed files with 9 additions and 10 deletions

View File

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