@@ -22,7 +22,7 @@ export default function SearchResultCard({
2222 return (
2323 < Card className = "relative overflow-hidden" >
2424 { /* 메인 콘텐츠 영역 */ }
25- < div className = "p-3" >
25+ < div className = "h-[150px] w-full gap-4 p-3" >
2626 { /* 노래 정보 */ }
2727 < div className = "mb-8 flex flex-col" >
2828 { /* 제목 및 가수 */ }
@@ -46,45 +46,38 @@ export default function SearchResultCard({
4646 </ div >
4747
4848 { /* 버튼 영역 - 우측 하단에 고정 */ }
49- < div className = "absolute right-3 bottom-3 flex space-x-1 " >
49+ < div className = "absolute bottom-3 flex w-full space-x-2 pr-6 " >
5050 < Button
5151 variant = "ghost"
5252 size = "icon"
53- className = { `h-8 w-8 ${ isToSing ? 'text-primary bg-primary/10' : '' } ` }
53+ className = { `h-13 flex-1 flex-col items-center justify-center ${ isToSing ? 'text-primary bg-primary/10' : '' } ` }
5454 aria-label = { isToSing ? '내 노래 목록에서 제거' : '내 노래 목록에 추가' }
5555 onClick = { onToggleToSing }
5656 >
57- { isToSing ? (
58- < div className = "relative" >
59- < MinusCircle className = "h-4 w-4" />
60- </ div >
61- ) : (
62- < div className = "relative" >
63- < PlusCircle className = "h-4 w-4" />
64- </ div >
65- ) }
57+ { isToSing ? < MinusCircle /> : < PlusCircle /> }
58+ < span className = "text-xs" > { isToSing ? '부를곡 취소' : '부를곡 추가' } </ span >
6659 </ Button >
6760
6861 < Button
6962 variant = "ghost"
7063 size = "icon"
71- className = { `h-8 w-8 ${ isLike ? 'text-red-500' : '' } ` }
64+ className = { `h-13 flex-1 flex-col items-center justify-center ` }
7265 aria-label = { isLike ? '좋아요 취소' : '좋아요' }
7366 onClick = { onToggleLike }
7467 >
75- < Heart className = { `h-4 w-4 ${ isLike ? 'fill-current' : '' } ` } />
68+ < Heart className = { `${ isLike ? 'fill-current text-red-500' : '' } ` } />
69+ < span className = "text-xs" > { isLike ? '좋아요 취소' : '좋아요' } </ span >
7670 </ Button >
7771
7872 < Button
7973 variant = "ghost"
8074 size = "icon"
81- className = { `h-8 w-8 ${ isSave ? 'text-primary bg-primary/10' : '' } ` }
75+ className = { `h-13 flex-1 flex-col items-center justify-center ${ isSave ? 'text-primary bg-primary/10' : '' } ` }
8276 aria-label = { isSave ? '재생목록 수정' : '재생목록에 추가' }
8377 onClick = { onClickSave }
8478 >
85- < div className = "relative" >
86- { isSave ? < ListRestart className = "h-4 w-4" /> : < ListPlus className = "h-4 w-4" /> }
87- </ div >
79+ { isSave ? < ListRestart className = "h-5 w-5" /> : < ListPlus className = "h-5 w-5" /> }
80+ < span className = "text-xs" > { isSave ? '재생목록 수정' : '재생목록 추가' } </ span >
8881 </ Button >
8982 </ div >
9083 </ div >
0 commit comments