Add menu ellipsis button to notes

Changelog-Added: Add ellipsis button to notes
This commit is contained in:
ericholguin
2023-02-10 23:57:20 -07:00
committed by William Casarin
parent cff98161ee
commit b6a7f52596
7 changed files with 110 additions and 62 deletions

View File

@@ -44,7 +44,13 @@ struct TextEvent: View {
.foregroundColor(.gray)
Spacer()
EventMenuContext(event: event, keypair: damus.keypair, target_pubkey: event.pubkey, bookmarks: damus.bookmarks)
.padding([.bottom], 4)
}
.minimumScaleFactor(0.75)
.lineLimit(1)
EventBody(damus_state: damus, event: event, size: .normal)
@@ -66,7 +72,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, bookmarks: damus.bookmarks)
}
}