From 65512d46c28b709bc7b9c2f07a24df3269b75f0a Mon Sep 17 00:00:00 2001 From: elhombretecla Date: Mon, 19 Oct 2020 14:28:11 +0200 Subject: [PATCH] fix colopicker position --- frontend/src/app/main/ui/workspace/colorpicker.cljs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/app/main/ui/workspace/colorpicker.cljs b/frontend/src/app/main/ui/workspace/colorpicker.cljs index dc81151e4..abcdae7a8 100644 --- a/frontend/src/app/main/ui/workspace/colorpicker.cljs +++ b/frontend/src/app/main/ui/workspace/colorpicker.cljs @@ -346,10 +346,10 @@ overflow-fix (max 0 (+ y (- 50) h (- vh)))] (cond (or (nil? x) (nil? y)) {:left "auto" :right "16rem" :top "4rem"} - (= position :left) {:left (str (- x 270) "px") + (= position :left) {:left (str (- x 250) "px") :top (str (- y 50 overflow-fix) "px")} - :else {:left (str (+ x 24) "px") - :top (str (- y 50 overflow-fix) "px")}))) + :else {:left (str (+ x 80) "px") + :top (str (- y 70 overflow-fix) "px")}))) (mf/defc colorpicker-modal