Skip to content

Commit ffd4e56

Browse files
committed
[Style] 정렬 수정
1 parent aa6e9d8 commit ffd4e56

File tree

3 files changed

+14
-8
lines changed

3 files changed

+14
-8
lines changed

src/components/columnCard/Card.tsx

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { AssigneeType, CardType } from "@/types/task";
22
import Image from "next/image";
33
import { getTagColor } from "../modalInput/chips/ColorTagChip";
4+
import RandomProfile from "../table/member/RandomProfile";
45

56
type CardProps = CardType & {
67
imageUrl?: string | null;
@@ -99,13 +100,16 @@ export default function Card({
99100
<Image
100101
src={assignee.profileImageUrl}
101102
alt="프로필 이미지"
102-
width={24}
103-
height={24}
104-
className="w-6 h-6 rounded-full object-cover"
103+
width={22}
104+
height={22}
105+
className="sm:w-[24px] sm:h-[24px] rounded-full object-cover"
105106
/>
106107
) : (
107-
<div className="w-6 h-6 flex items-center justify-center bg-[#A3C4A2] text-white font-medium rounded-full text-xs">
108-
{assignee.nickname[0]}
108+
<div
109+
className="sm:w-[24px] sm:h-[24px] w-[22px] h-[22px] rounded-full
110+
overflow-hidden flex items-center justify-center"
111+
>
112+
<RandomProfile name={assignee.nickname} />
109113
</div>
110114
)}
111115
</div>

src/components/modalDashboard/Representative.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export const Representative = ({ card }: RepresentativeProps) => {
1717
<div className="flex sm:flex-col sm:gap-4 gap-17">
1818
{/* 담당자 컨테이너 */}
1919
<div>
20-
<p className="font-12sb text-black3 mb-1">담당자</p>
20+
<p className="font-12sb text-black3 mb-[4px]">담당자</p>
2121
<div className="flex items-center gap-2">
2222
<ProfileIcon
2323
userId={card.assignee.id}
@@ -35,7 +35,7 @@ export const Representative = ({ card }: RepresentativeProps) => {
3535

3636
{/* 마감일 컨테이너 */}
3737
<div>
38-
<p className="font-12sb text-black3 sm:mb-1 mb-[8px]">마감일</p>
38+
<p className="font-12sb text-black3 sm:mb-1 mb-[4px]">마감일</p>
3939
<p className="font-normal text-black3 sm:text-[14px] text-[12px]">
4040
{new Date(card.dueDate).toLocaleString("ko-KR", {
4141
year: "numeric",

src/components/table/member/RandomProfile.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ export default function RandomProfile({ name, index }: RandomProfileProps) {
1515

1616
return (
1717
<div
18-
className={`flex items-center justify-center text-white font-16sb leading-none rounded-full ${bgColor} w-[34px] h-[34px] md:w-[38px] md:h-[38px]`}
18+
className={`flex items-center justify-center
19+
leading-none text-white font-medium
20+
rounded-full ${bgColor} w-[34px] h-[34px] md:w-[38px] md:h-[38px]`}
1921
>
2022
{name[0]}
2123
</div>

0 commit comments

Comments
 (0)