Skip to content

Commit

Permalink
ui: increase size of the hitbox on note ellipsis button
Browse files Browse the repository at this point in the history
Changelog-Changed: Increase size of the hitbox on note ellipsis button
Closes: #1454
Signed-off-by: Daniel D’Aquino <[email protected]>
Signed-off-by: William Casarin <[email protected]>
  • Loading branch information
danieldaquino authored and jb55 committed Sep 16, 2023
1 parent 01b8e43 commit bfda0d1
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions damus/Views/Events/EventMenu.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit bfda0d1

Please sign in to comment.