Skip to content

Commit

Permalink
Merge pull request #136 from part4-6team/develop
Browse files Browse the repository at this point in the history
fix : 모바일 하트 애니메이션 버그 수정
  • Loading branch information
jangyonghan authored Dec 16, 2024
2 parents e3b44b5 + 0e8d743 commit ca76a1d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion public/sw.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/components/article/DetailCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ export default function DetailCard() {
{data?.commentCount}
</span>
</div>
<div className="flex items-center gap-1">
<div className="z-20 flex items-center gap-1">
<Heart articleId={data?.id} />
<span className="text-xs-regular text-slate-400 md:text-md-medium">
{data?.likeCount}
Expand Down
2 changes: 1 addition & 1 deletion src/components/article/Heart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export default function Heart({ articleId }: HeartProps) {
initial={{ opacity: 0, scale: 0 }}
animate={{ opacity: 1, scale: 1 }}
exit={{ opacity: 0, scale: 0 }}
className="fixed bottom-1/2 left-1/2"
className="fixed bottom-1/2 left-1/2 -translate-x-1/2 translate-y-1/2 transform md:left-1/2"
>
<Image
alt="하트 클릭 애니메이션"
Expand Down

0 comments on commit ca76a1d

Please sign in to comment.