mirror of
https://github.com/penpot/penpot.git
synced 2025-06-02 08:51:38 +02:00
🐛 Fixes problem with context-menu on colors
This commit is contained in:
parent
b5a875c03b
commit
147ccd176a
2 changed files with 4 additions and 3 deletions
|
@ -181,7 +181,7 @@
|
|||
(when local?
|
||||
(let [pos (dom/get-client-position event)
|
||||
top (:y pos)
|
||||
left (- (:x pos) 20)]
|
||||
left (+ 10 (:x pos))]
|
||||
(dom/prevent-default event)
|
||||
(swap! state assoc
|
||||
:menu-open true
|
||||
|
@ -250,7 +250,8 @@
|
|||
(for [color colors]
|
||||
[:& color-item {:key (:id color)
|
||||
:color color
|
||||
:local? local?}])]]))
|
||||
:local? local?
|
||||
:locale locale}])]]))
|
||||
|
||||
(defn file-colors-ref
|
||||
[id]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue