mirror of
https://github.com/penpot/penpot.git
synced 2026-03-10 04:06:10 +00:00
📱 Display user popup on click instead of hover
This commit is contained in:
@@ -49,8 +49,8 @@
|
||||
photo (if (str/empty? (:photo profile ""))
|
||||
"/images/avatar.jpg"
|
||||
(:photo profile))]
|
||||
[:div.user-zone {:on-mouse-enter #(swap! local assoc :open true)
|
||||
:on-mouse-leave #(swap! local assoc :open false)}
|
||||
[:div.user-zone {:on-mouse-down #(swap! local assoc :open true)
|
||||
:on-mouse-up #(swap! local assoc :open false)}
|
||||
[:span (:fullname profile)]
|
||||
[:img {:src photo}]
|
||||
(user-menu (:open @local))]))
|
||||
|
||||
Reference in New Issue
Block a user