mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2025-01-09 21:33:27 +01:00
Remove the ... button and replace it with a thread indicator close #634
This commit is contained in:
parent
5f806d7a1b
commit
816eae2d40
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user