@@ -77,6 +77,7 @@ const Chrome = React.forwardRef<HTMLDivElement, ChromeProps>((props, ref) => {
77
77
let result = hexToHsva ( hex ) ;
78
78
handleChange ( { ...result } ) ;
79
79
} ;
80
+ const styleSize = { height : 14 , width : 14 } ;
80
81
return (
81
82
< Github
82
83
ref = { ref }
@@ -95,7 +96,7 @@ const Chrome = React.forwardRef<HTMLDivElement, ChromeProps>((props, ref) => {
95
96
handleChange ( { ...hsva , ...newColor , a : hsva . a } ) ;
96
97
} }
97
98
/>
98
- < div style = { { padding : 15 , display : 'flex' , alignItems : 'center' , gap : 15 } } >
99
+ < div style = { { padding : 15 , display : 'flex' , alignItems : 'center' , gap : 10 } } >
99
100
{ isSupportEyeDropper && < EyeDropper onPickColor = { handleClickColor } /> }
100
101
< Alpha
101
102
width = { 28 }
@@ -114,7 +115,11 @@ const Chrome = React.forwardRef<HTMLDivElement, ChromeProps>((props, ref) => {
114
115
< div style = { { flex : 1 } } >
115
116
< Hue
116
117
hue = { hsva . h }
117
- style = { { width : '100%' } }
118
+ style = { { width : '100%' , height : 12 } }
119
+ pointerProps = { {
120
+ style : { ...styleSize } ,
121
+ fillProps : { style : styleSize } ,
122
+ } }
118
123
bgProps = { {
119
124
style : { borderRadius : 2 } ,
120
125
} }
@@ -124,7 +129,11 @@ const Chrome = React.forwardRef<HTMLDivElement, ChromeProps>((props, ref) => {
124
129
/>
125
130
< Alpha
126
131
hsva = { hsva }
127
- style = { { marginTop : 10 } }
132
+ style = { { marginTop : 6 , height : 12 } }
133
+ pointerProps = { {
134
+ style : { ...styleSize } ,
135
+ fillProps : { style : styleSize } ,
136
+ } }
128
137
bgProps = { {
129
138
style : { borderRadius : 2 } ,
130
139
} }
0 commit comments