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:
parent
0b2074c254
commit
7b44f34b32
3 changed files with 2 additions and 3 deletions
|
@ -196,7 +196,6 @@
|
|||
flex-direction: column;
|
||||
left: 1400px;
|
||||
top: 100px;
|
||||
padding: $small;
|
||||
position: absolute;
|
||||
z-index: 11;
|
||||
width: auto;
|
||||
|
|
|
@ -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]}]
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue