Skip to content

Commit

Permalink
[🎨style]: 체크박스 크기조정
Browse files Browse the repository at this point in the history
  • Loading branch information
loevray committed Apr 17, 2024
1 parent 42f6c62 commit fba8d8d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/pages/MainPage/GameModeCheckBox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const GameModeCheckBox = ({
setCheckedGameMode,
}: GameModeCheckBoxProps) => {
return (
<form className='flex gap-[2rem]'>
<form className='flex gap-[3rem]'>
{gameModeList.map((mode, i) => {
//매 렌더링시 생성되므로 map 바깥으로 뺀다?
const onCheckedChange = () => {
Expand All @@ -32,19 +32,19 @@ const GameModeCheckBox = ({
};
return (
<div
className='flex items-center'
className='flex items-center gap-[0.5em]'
key={mode}>
<Checkbox.Root
checked={checkedGameMode[mode]}
onClick={onCheckedChange}
className='bg-white w-[2.5rem] h-[2.5rem] rounded-md flex items-center justify-center shadow-md hover:bg-gray-100/50'
className='bg-white w-[3rem] h-[3rem] rounded-md flex items-center justify-center shadow-md hover:bg-gray-100/50'
id={`c${i}`}>
<Checkbox.Indicator className='CheckboxIndicator'>
<CheckIcon />
<Checkbox.Indicator className=''>
<CheckIcon className='size-[3rem]' />
</Checkbox.Indicator>
</Checkbox.Root>
<label
className='cursor-pointer'
className='cursor-pointer text-[2rem] font-bold'
htmlFor={`c${i}`}>
{mappedGameModeList[mode]}
</label>
Expand Down

0 comments on commit fba8d8d

Please sign in to comment.