Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading