Skip to content

Commit 967b803

Browse files
committed
[Style] 카드 상세모달 스타일 수정
1 parent f92fc99 commit 967b803

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

src/components/modalDashboard/CardDetail.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ interface CardDetailProps {
1111
export default function CardDetail({ card }: CardDetailProps) {
1212
return (
1313
<div className="p-4 ">
14-
<h2 className="text-3xl font-semibold mb-7">{card.title}</h2>
14+
<h2 className="text-3xl font-semibold mb-5">{card.title}</h2>
1515
{/* 작성자 정보 추가 */}
16-
<div className="absolute w-[181px] h-[155px] lg:[200px] top-20 right-10 rounded-lg p-4 bg-white border border-[#D9D9D9]">
16+
<div className="absolute w-[181px] h-[155px] lg:[200px] top-20 right-10 rounded-lg p-3.5 bg-white border border-[#D9D9D9]">
1717
<div className="mb-3">
1818
<p className="text-sm font-semibold text-gray-800 mb-1">담당자</p>
1919
<div className="flex items-center gap-2">
@@ -47,7 +47,7 @@ export default function CardDetail({ card }: CardDetailProps) {
4747
</div>
4848
</div>
4949
</div>
50-
<div className="flex flex-wrap gap-2 mb-4">
50+
<div className="flex flex-wrap gap-2 mb-2">
5151
<span
5252
className="rounded-full bg-violet-200 px-3 py-1 text-sm text-violet-800"
5353
title={`상태: ${card.status}`}
@@ -81,9 +81,9 @@ export default function CardDetail({ card }: CardDetailProps) {
8181
<Image
8282
src={card.imageUrl}
8383
alt="카드 이미지"
84-
width={445}
85-
height={260}
86-
className="rounded-lg object-cover w-full h-auto"
84+
width={420}
85+
height={226}
86+
className="rounded-lg object-cover lg:w-[445px] lg:h-[260px] w-[420px] h-[246px] "
8787
/>
8888
</div>
8989
)}

src/components/modalDashboard/CardDetailModal.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,20 +64,20 @@ export default function CardDetailPage({
6464
"
6565
>
6666
{/* 오른쪽 상단 메뉴 */}
67-
<div className="absolute top-6 right-10 z-30 flex items-center gap-5 ">
67+
<div className="absolute top-6 right-10 z-30 flex items-center gap-5 mt-3 ">
6868
<div className="relative">
6969
<button
7070
onClick={() => setShowMenu((prev) => !prev)}
7171
className="hover:cursor-pointer"
7272
title="수정하기"
7373
type="button"
7474
>
75-
<MoreVertical className="w-8 h-8 text-gray-500 hover:text-black" />
75+
<MoreVertical className="w-8 h-8 text-black cursor-pointer" />
7676
</button>
7777
{showMenu && (
7878
<div className="absolute right-0.5 p-2 w-27 bg-white border border-[#D9D9D9] z-40 rounded-lg">
7979
<button
80-
className="block w-full px-4 py-2 text-base text-gray-800 hover:bg-[#F1EFFD] hover:text-[#5534DA] rounded-sm"
80+
className="block w-full px-4 py-2 text-base text-gray-800 hover:bg-[#F1EFFD] hover:text-[#5534DA] rounded-sm cursor-pointer"
8181
type="button"
8282
onClick={() => {
8383
setIsEditModalOpen(true);
@@ -87,7 +87,7 @@ export default function CardDetailPage({
8787
수정하기
8888
</button>
8989
<button
90-
className="block w-full px-4 py-2 text-base text-gray-800 hover:bg-[#F1EFFD] hover:text-[#5534DA] rounded-sm "
90+
className="block w-full px-4 py-2 text-base text-gray-800 hover:bg-[#F1EFFD] hover:text-[#5534DA] rounded-sm cursor-pointer"
9191
type="button"
9292
onClick={() => deleteCardMutate()}
9393
>
@@ -97,7 +97,7 @@ export default function CardDetailPage({
9797
)}
9898
</div>
9999
<button onClick={onClose} title="메뉴 열기">
100-
<X className="w-8 h-8 text-gray-500 hover:cursor-pointer" />
100+
<X className="w-8 h-8 text-black hover:cursor-pointer" />
101101
</button>
102102
</div>
103103

0 commit comments

Comments
 (0)