Add menu ellipsis button to notes

Changelog-Changed: Switch from long-press to ... on events for context menu
Closes: #568
This commit is contained in:
ericholguin
2023-02-10 23:57:20 -07:00
committed by William Casarin
parent 94f66adf8d
commit 390c9162ae
6 changed files with 94 additions and 48 deletions

View File

@@ -37,7 +37,13 @@ struct TextEvent: View {
.foregroundColor(.gray)
Spacer()
EventMenuContext(event: event, keypair: damus.keypair, target_pubkey: event.pubkey)
.padding([.bottom], 4)
}
.minimumScaleFactor(0.75)
.lineLimit(1)
EventBody(damus_state: damus, event: event, size: .normal)
@@ -59,7 +65,6 @@ struct TextEvent: View {
.id(event.id)
.frame(maxWidth: .infinity, minHeight: PFP_SIZE)
.padding([.bottom], 2)
.event_context_menu(event, keypair: damus.keypair, target_pubkey: pubkey)
}
}