File tree Expand file tree Collapse file tree 1 file changed +4
-19
lines changed Expand file tree Collapse file tree 1 file changed +4
-19
lines changed Original file line number Diff line number Diff line change @@ -17,31 +17,16 @@ export default function ColorPalette({
17
17
</ div >
18
18
< hr />
19
19
< div className = "py-3 space-y-3" >
20
- < div >
21
- { tableThemes . slice ( 0 , Math . ceil ( tableThemes . length / 2 ) ) . map ( ( c ) => (
20
+ < div className = "flex flex-wrap w-72 gap-y-2" >
21
+ { tableThemes . map ( ( c ) => (
22
22
< button
23
23
key = { c }
24
24
style = { { backgroundColor : c } }
25
- className = "p-3 rounded-full mx-1"
26
- onClick = { ( ) => onPickColor ( c ) }
27
- >
28
- { currentColor === c ? (
29
- < IconCheckboxTick style = { { color : "white" } } />
30
- ) : (
31
- < IconCheckboxTick style = { { color : c } } />
32
- ) }
33
- </ button >
34
- ) ) }
35
- </ div >
36
- < div >
37
- { tableThemes . slice ( Math . ceil ( tableThemes . length / 2 ) ) . map ( ( c ) => (
38
- < button
39
- key = { c }
40
- style = { { backgroundColor : c } }
41
- className = "p-3 rounded-full mx-1"
25
+ className = "w-10 h-10 rounded-full mx-1"
42
26
onClick = { ( ) => onPickColor ( c ) }
43
27
>
44
28
< IconCheckboxTick
29
+ className = "pt-1"
45
30
style = { {
46
31
color : currentColor === c ? "white" : c ,
47
32
} }
You can’t perform that action at this time.
0 commit comments