mirror of
https://github.com/penpot/penpot.git
synced 2025-03-15 17:21:17 -05: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
|
@ -223,7 +223,7 @@
|
|||
}
|
||||
|
||||
.context-menu {
|
||||
position: absolute;
|
||||
position: fixed;
|
||||
top: 10px;
|
||||
left: 10px;
|
||||
}
|
||||
|
|
|
@ -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
Reference in a new issue