Skip to content

Commit 41b7537

Browse files
authored
Merge pull request #147 from hhjin1/card-hj
[Style] 카드 상세모달 스타일 수정
2 parents 7dc2eb3 + 967b803 commit 41b7537

File tree

4 files changed

+14
-14
lines changed

4 files changed

+14
-14
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

src/components/modalInput/CardInput.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export default function CardInput({
4949
color="secondary"
5050
buttonSize="xs"
5151
onClick={onButtonClick}
52-
className="absolute bottom-3 right-3 z-10 flex items-center justify-center"
52+
className="absolute bottom-3 right-3 z-10 flex items-center justify-center border-gray-300 text-[#5534DA] cursor-pointer"
5353
>
5454
입력
5555
</TextButton>

src/pages/dashboard/[dashboardId]/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,13 +98,13 @@ export default function Dashboard() {
9898
if (!isReady) return <div>로딩 중...</div>;
9999

100100
return (
101-
<div className="flex h-screen overflow-hidden bg-gray-50">
101+
<div className="flex h-screen overflow-hidden ">
102102
<SideMenu teamId={TEAM_ID} dashboardList={dashboardList} />
103103

104104
<div className="flex flex-col flex-1 overflow-hidden">
105105
<HeaderDashboard variant="dashboard" dashboardId={dashboardId} />
106106

107-
<div className="flex-1 overflow-x-auto flex flex-col md:flex-col lg:flex-row ">
107+
<div className="flex-1 overflow-x-auto flex flex-col md:flex-col lg:flex-row bg-gray-50 ">
108108
{/* 각 칼럼 렌더링 */}
109109
{columns.map((col) => (
110110
<Column

0 commit comments

Comments
 (0)