💄 Add minor improvements to dashboard project menu

This commit is contained in:
Andrey Antukh 2024-10-18 16:47:29 +02:00 committed by Alonso Torres
parent 6b997928e5
commit b800fcafb4
4 changed files with 22 additions and 21 deletions

View file

@ -19,8 +19,9 @@
[app.util.router :as rt]
[rumext.v2 :as mf]))
(mf/defc project-menu
[{:keys [project show? on-edit on-menu-close top left on-import] :as props}]
(mf/defc project-menu*
{::mf/props :obj}
[{:keys [project show on-edit on-menu-close top left on-import]}]
(let [top (or top 0)
left (or left 0)
@ -117,7 +118,7 @@
[:*
[:> context-menu*
{:on-close on-menu-close
:show show?
:show show
:fixed (or (not= top 0) (not= left 0))
:min-width true
:top top