mirror of
https://github.com/penpot/penpot.git
synced 2025-05-13 00:26:40 +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
|
@ -223,7 +223,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.context-menu {
|
.context-menu {
|
||||||
position: absolute;
|
position: fixed;
|
||||||
top: 10px;
|
top: 10px;
|
||||||
left: 10px;
|
left: 10px;
|
||||||
}
|
}
|
||||||
|
|
|
@ -181,7 +181,7 @@
|
||||||
(when local?
|
(when local?
|
||||||
(let [pos (dom/get-client-position event)
|
(let [pos (dom/get-client-position event)
|
||||||
top (:y pos)
|
top (:y pos)
|
||||||
left (- (:x pos) 20)]
|
left (+ 10 (:x pos))]
|
||||||
(dom/prevent-default event)
|
(dom/prevent-default event)
|
||||||
(swap! state assoc
|
(swap! state assoc
|
||||||
:menu-open true
|
:menu-open true
|
||||||
|
@ -250,7 +250,8 @@
|
||||||
(for [color colors]
|
(for [color colors]
|
||||||
[:& color-item {:key (:id color)
|
[:& color-item {:key (:id color)
|
||||||
:color color
|
:color color
|
||||||
:local? local?}])]]))
|
:local? local?
|
||||||
|
:locale locale}])]]))
|
||||||
|
|
||||||
(defn file-colors-ref
|
(defn file-colors-ref
|
||||||
[id]
|
[id]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue