mirror of
https://github.com/penpot/penpot.git
synced 2025-05-18 14:56:12 +02:00
♻️ Update spacing on assets tab
This commit is contained in:
parent
de7c61e5ca
commit
d91b3d4fb6
19 changed files with 152 additions and 114 deletions
|
@ -71,6 +71,8 @@
|
|||
local (mf/use-state {:offset-y 0
|
||||
:offset-x 0
|
||||
:levels nil})
|
||||
width (gobj/get props "width" "initial")
|
||||
|
||||
|
||||
on-local-close
|
||||
(mf/use-callback
|
||||
|
@ -204,6 +206,7 @@
|
|||
(let [level (-> @local :levels peek)]
|
||||
[:ul {:class (stl/css-case :min-width min-width?
|
||||
:context-menu-items true)
|
||||
:style {:width width}
|
||||
:role "menu"
|
||||
:ref check-menu-offscreen}
|
||||
(when-let [parent-option (:parent-option level)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue