Skip to content

Commit 2f11edb

Browse files
committed
#183 [REFACTOR] 팀 생성 모달 말줄임표 적용
1 parent 61d62c7 commit 2f11edb

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

src/pages/setting/components/MemberCheckbox.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ interface MemberCheckboxProps {
99
const MemberCheckbox = (props: MemberCheckboxProps) => {
1010
return (
1111
<div
12-
className={`flex items-center gap-x-[0.8rem]`}
12+
className={`flex items-start gap-x-[0.8rem]`}
1313
onClick={() => props.onSelect(!props.checked)}
1414
>
1515
<div className={`p-[0.4rem]`}>
@@ -25,7 +25,11 @@ const MemberCheckbox = (props: MemberCheckboxProps) => {
2525
/>
2626
)}
2727
</div>
28-
<span className={`font-small-b text-gray-400`}>{props.name}</span>
28+
<span
29+
className={`font-small-b truncate ${props.checked ? 'text-gray-600' : 'text-gray-400'}`}
30+
>
31+
{props.name}
32+
</span>
2933
</div>
3034
);
3135
};

src/pages/setting/components/modal/TeamCreateModal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ const TeamCreateModal = (props: TeamCreateModalProps) => {
4444
<div className={`flex flex-col`}>
4545
<input
4646
className={`text-start w-full border px-[1.2rem] py-[0.7rem]
47-
font-body-r text-gray-400 placeholder:text-gray-400 rounded-[0.6rem] focus:outline-none
47+
font-body-r text-gray-600 placeholder:text-gray-400 rounded-[0.6rem] focus:outline-none
4848
${!isNameValid && teamName ? 'border-error-400' : 'border-gray-300'}`}
4949
type={'text'}
5050
placeholder={'팀 이름을 입력하세요'}

0 commit comments

Comments
 (0)