🐛 Fixes problem with context-menu on colors

This commit is contained in:
alonso.torres 2020-09-11 10:54:10 +02:00
parent b5a875c03b
commit 147ccd176a
2 changed files with 4 additions and 3 deletions

View file

@ -223,7 +223,7 @@
} }
.context-menu { .context-menu {
position: absolute; position: fixed;
top: 10px; top: 10px;
left: 10px; left: 10px;
} }

View file

@ -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]