Skip to content

Commit f739126

Browse files
committed
feat(app): 2-column color picker buttons for mobile UI
1 parent e066f37 commit f739126

File tree

3 files changed

+227
-193
lines changed

3 files changed

+227
-193
lines changed

src/components/ColorPicker/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export const ColorPicker: React.FC<ColorPickerProps> = (props) => {
8585
return (
8686
<>
8787
<div className='flex items-center justify-center'>
88-
<div className='w-full md:w-2/3 lg:w-1/2 sm:mx-32 grid grid-cols-4 gap-2 sm:gap-7'>
88+
<div className='w-full md:w-2/3 lg:w-1/2 sm:mx-32 grid grid-cols-2 sm:grid-cols-4 gap-3 sm:gap-7'>
8989
{Object.entries(props.colors).map(([name, color], i) => (
9090
<ColorPickerButton
9191
key={i}

src/components/svgs/gems.tsx

+4-4
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export const GemsSVG: React.FC<Props> = (props) => {
1111
if (props.gems === 'Amber') {
1212
return (
1313
<svg
14-
className='fill-current h-7 sm:h-16'
14+
className='fill-current h-10 md:h-16'
1515
viewBox='0 0 500 500'
1616
fill='none'
1717
xmlns='http://www.w3.org/2000/svg'>
@@ -86,7 +86,7 @@ export const GemsSVG: React.FC<Props> = (props) => {
8686
} else if (props.gems === 'Ice') {
8787
return (
8888
<svg
89-
className='fill-current h-7 sm:h-16'
89+
className='fill-current h-10 md:h-16'
9090
viewBox='0 0 500 500'
9191
fill='none'
9292
xmlns='http://www.w3.org/2000/svg'>
@@ -169,7 +169,7 @@ export const GemsSVG: React.FC<Props> = (props) => {
169169
} else if (props.gems === 'Classic') {
170170
return (
171171
<svg
172-
className='fill-current h-7 sm:h-16'
172+
className='fill-current h-10 md:h-16'
173173
viewBox='0 0 500 500'
174174
fill='none'
175175
xmlns='http://www.w3.org/2000/svg'>
@@ -250,7 +250,7 @@ export const GemsSVG: React.FC<Props> = (props) => {
250250
} else {
251251
return (
252252
<svg
253-
className='fill-current h-7 sm:h-16'
253+
className='fill-current h-10 md:h-16'
254254
viewBox='0 0 500 500'
255255
fill='none'
256256
xmlns='http://www.w3.org/2000/svg'>

0 commit comments

Comments
 (0)