mirror of
git://jb55.com/damus
synced 2024-09-18 19:23:49 +00:00
ui: increase size of the hitbox on note ellipsis button
Changelog-Changed: Increase size of the hitbox on note ellipsis button Closes: https://github.com/damus-io/damus/issues/1454 Signed-off-by: Daniel D’Aquino <daniel@daquino.me> Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
parent
01b8e43a6e
commit
bfda0d1b74
@ -26,12 +26,19 @@ struct EventMenuContext: View {
|
||||
|
||||
var body: some View {
|
||||
HStack {
|
||||
Label("", systemImage: "ellipsis")
|
||||
.foregroundColor(Color.gray)
|
||||
.contentShape(Circle())
|
||||
// Add our Menu button inside an overlay modifier to avoid affecting the rest of the layout around us.
|
||||
.overlay(
|
||||
Menu {
|
||||
MenuItems(event: event, keypair: keypair, target_pubkey: target_pubkey, bookmarks: bookmarks, muted_threads: muted_threads, settings: settings)
|
||||
} label: {
|
||||
Label("", systemImage: "ellipsis")
|
||||
.foregroundColor(Color.gray)
|
||||
Color.clear
|
||||
}
|
||||
// Hitbox frame size
|
||||
.frame(width: 100, height: 70)
|
||||
)
|
||||
}
|
||||
.padding([.bottom], 4)
|
||||
.contentShape(Rectangle())
|
||||
|
Loading…
Reference in New Issue
Block a user