mirror of
https://github.com/penpot/penpot.git
synced 2025-01-24 15:39:50 -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;
|
flex-direction: column;
|
||||||
left: 1400px;
|
left: 1400px;
|
||||||
top: 100px;
|
top: 100px;
|
||||||
padding: $small;
|
|
||||||
position: absolute;
|
position: absolute;
|
||||||
z-index: 11;
|
z-index: 11;
|
||||||
width: auto;
|
width: auto;
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
:presetColors colors
|
:presetColors colors
|
||||||
:onChange on-change-complete
|
:onChange on-change-complete
|
||||||
:disableAlpha disable-opacity
|
:disableAlpha disable-opacity
|
||||||
:style {:box-shadow "none"}}]))
|
:styles {:default {:picker {:padding "10px"}}}}]))
|
||||||
|
|
||||||
(def most-used-colors
|
(def most-used-colors
|
||||||
(letfn [(selector [{:keys [objects]}]
|
(letfn [(selector [{:keys [objects]}]
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
(mf/defc colorpicker-modal
|
(mf/defc colorpicker-modal
|
||||||
[{:keys [x y default value opacity page on-change disable-opacity] :as props}]
|
[{:keys [x y default value opacity page on-change disable-opacity] :as props}]
|
||||||
[:div.colorpicker-tooltip
|
[:div.colorpicker-tooltip
|
||||||
{:style {:left (str (- x 260) "px")
|
{:style {:left (str (- x 270) "px")
|
||||||
:top (str (- y 50) "px")}}
|
:top (str (- y 50) "px")}}
|
||||||
[:& cp/colorpicker {:value (or value default)
|
[:& cp/colorpicker {:value (or value default)
|
||||||
:opacity (or opacity 1)
|
:opacity (or opacity 1)
|
||||||
|
|
Loading…
Add table
Reference in a new issue