mirror of
https://github.com/penpot/penpot.git
synced 2025-01-10 08:50:57 -05:00
fix colopicker position
This commit is contained in:
parent
c94d7f712a
commit
65512d46c2
1 changed files with 3 additions and 3 deletions
|
@ -346,10 +346,10 @@
|
||||||
overflow-fix (max 0 (+ y (- 50) h (- vh)))]
|
overflow-fix (max 0 (+ y (- 50) h (- vh)))]
|
||||||
(cond
|
(cond
|
||||||
(or (nil? x) (nil? y)) {:left "auto" :right "16rem" :top "4rem"}
|
(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")}
|
:top (str (- y 50 overflow-fix) "px")}
|
||||||
:else {:left (str (+ x 24) "px")
|
:else {:left (str (+ x 80) "px")
|
||||||
:top (str (- y 50 overflow-fix) "px")})))
|
:top (str (- y 70 overflow-fix) "px")})))
|
||||||
|
|
||||||
|
|
||||||
(mf/defc colorpicker-modal
|
(mf/defc colorpicker-modal
|
||||||
|
|
Loading…
Reference in a new issue