0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-09 00:10:11 -05:00

💄 Add visible padding to color picker

This commit is contained in:
Andrés Moya 2020-06-11 11:30:13 +02:00 committed by Andrey Antukh
parent 0b2074c254
commit 7b44f34b32
3 changed files with 2 additions and 3 deletions

View file

@ -196,7 +196,6 @@
flex-direction: column;
left: 1400px;
top: 100px;
padding: $small;
position: absolute;
z-index: 11;
width: auto;

View file

@ -28,7 +28,7 @@
:presetColors colors
:onChange on-change-complete
:disableAlpha disable-opacity
:style {:box-shadow "none"}}]))
:styles {:default {:picker {:padding "10px"}}}}]))
(def most-used-colors
(letfn [(selector [{:keys [objects]}]

View file

@ -16,7 +16,7 @@
(mf/defc colorpicker-modal
[{:keys [x y default value opacity page on-change disable-opacity] :as props}]
[:div.colorpicker-tooltip
{:style {:left (str (- x 260) "px")
{:style {:left (str (- x 270) "px")
:top (str (- y 50) "px")}}
[:& cp/colorpicker {:value (or value default)
:opacity (or opacity 1)