mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-11-26 18:21:00 +00:00
Menu is back close #757
This commit is contained in:
parent
dedc7af49c
commit
b963a74dc4
1 changed files with 11 additions and 1 deletions
|
@ -209,7 +209,7 @@ public struct StatusRowView: View {
|
||||||
VStack(alignment: .leading, spacing: 8) {
|
VStack(alignment: .leading, spacing: 8) {
|
||||||
if let status: AnyStatus = viewModel.status.reblog ?? viewModel.status {
|
if let status: AnyStatus = viewModel.status.reblog ?? viewModel.status {
|
||||||
if !viewModel.isCompact {
|
if !viewModel.isCompact {
|
||||||
HStack(alignment: .top) {
|
HStack(alignment: .center) {
|
||||||
Button {
|
Button {
|
||||||
viewModel.navigateToAccountDetail(account: status.account, routerPath: routerPath)
|
viewModel.navigateToAccountDetail(account: status.account, routerPath: routerPath)
|
||||||
} label: {
|
} label: {
|
||||||
|
@ -218,6 +218,7 @@ public struct StatusRowView: View {
|
||||||
.buttonStyle(.plain)
|
.buttonStyle(.plain)
|
||||||
Spacer()
|
Spacer()
|
||||||
threadIcon
|
threadIcon
|
||||||
|
contextMenuButton
|
||||||
}
|
}
|
||||||
.accessibilityElement()
|
.accessibilityElement()
|
||||||
.accessibilityLabel(Text("\(status.account.displayName)"))
|
.accessibilityLabel(Text("\(status.account.displayName)"))
|
||||||
|
@ -325,6 +326,15 @@ public struct StatusRowView: View {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private var contextMenuButton: some View {
|
||||||
|
Menu {
|
||||||
|
contextMenu
|
||||||
|
} label: {
|
||||||
|
Image(systemName: "ellipsis")
|
||||||
|
.foregroundColor(.gray)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@ViewBuilder
|
@ViewBuilder
|
||||||
private func makeTranslateView(status: AnyStatus) -> some View {
|
private func makeTranslateView(status: AnyStatus) -> some View {
|
||||||
if let userLang = preferences.serverPreferences?.postLanguage,
|
if let userLang = preferences.serverPreferences?.postLanguage,
|
||||||
|
|
Loading…
Reference in a new issue