mirror of
https://github.com/penpot/penpot.git
synced 2025-01-21 06:02:32 -05:00
Indent
This commit is contained in:
parent
9bec2509c9
commit
1633f8035e
1 changed files with 4 additions and 6 deletions
|
@ -310,12 +310,10 @@
|
|||
selected-shapes (into [] (keep (d/getf objects)) selected)
|
||||
token-id (:token-id mdata)
|
||||
token (get (mf/deref refs/workspace-tokens) token-id)]
|
||||
|
||||
(mf/use-effect
|
||||
(fn []
|
||||
(when-let [node (mf/ref-val dropdown-ref)]
|
||||
(reset! width (.-offsetWidth node)))))
|
||||
|
||||
(mf/use-effect
|
||||
(fn []
|
||||
(when-let [node (mf/ref-val dropdown-ref)]
|
||||
(reset! width (.-offsetWidth node)))))
|
||||
[:& dropdown {:show (boolean mdata)
|
||||
:on-close #(st/emit! dt/hide-token-context-menu)}
|
||||
[:div {:class (stl/css :token-context-menu)
|
||||
|
|
Loading…
Add table
Reference in a new issue