damus

nostr ios client
git clone git://jb55.com/damus
Log | Files | Refs | README | LICENSE

commit bfda0d1b74d7910a989afcb7faa7a56f2017bff9
parent 01b8e43a6e4af48b591666631f588c6dc64205f3
Author: Daniel D’Aquino <daniel@daquino.me>
Date:   Sat, 16 Sep 2023 05:37:04 +0000

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>

Diffstat:
Mdamus/Views/Events/EventMenu.swift | 19+++++++++++++------
1 file changed, 13 insertions(+), 6 deletions(-)

diff --git a/damus/Views/Events/EventMenu.swift b/damus/Views/Events/EventMenu.swift @@ -26,12 +26,19 @@ struct EventMenuContext: View { var body: some View { HStack { - 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) - } + 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: { + Color.clear + } + // Hitbox frame size + .frame(width: 100, height: 70) + ) } .padding([.bottom], 4) .contentShape(Rectangle())