mirror of
git://jb55.com/damus
synced 2024-09-19 11:43:44 +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 {
|
var body: some View {
|
||||||
HStack {
|
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 {
|
Menu {
|
||||||
MenuItems(event: event, keypair: keypair, target_pubkey: target_pubkey, bookmarks: bookmarks, muted_threads: muted_threads, settings: settings)
|
MenuItems(event: event, keypair: keypair, target_pubkey: target_pubkey, bookmarks: bookmarks, muted_threads: muted_threads, settings: settings)
|
||||||
} label: {
|
} label: {
|
||||||
Label("", systemImage: "ellipsis")
|
Color.clear
|
||||||
.foregroundColor(Color.gray)
|
|
||||||
}
|
}
|
||||||
|
// Hitbox frame size
|
||||||
|
.frame(width: 100, height: 70)
|
||||||
|
)
|
||||||
}
|
}
|
||||||
.padding([.bottom], 4)
|
.padding([.bottom], 4)
|
||||||
.contentShape(Rectangle())
|
.contentShape(Rectangle())
|
||||||
|
Loading…
Reference in New Issue
Block a user