Skip to content

Commit

Permalink
fix: polaroid lazy loading
Browse files Browse the repository at this point in the history
  • Loading branch information
hwanheejung committed Jan 9, 2025
1 parent 874b9b2 commit de49937
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const PolaroidListItem = ({
observer.disconnect()
}
},
{ threshold: 0.05 },
{ threshold: 0.1 },
)

if (ref.current) observer.observe(ref.current)
Expand All @@ -49,7 +49,7 @@ const PolaroidListItem = ({

const renderItem = (
<div
className="flex flex-col justify-center"
className="PolaroidCard flex flex-col justify-center"
style={{ rotate: `${rotate}deg` }}
>
<PolaroidCard
Expand All @@ -61,7 +61,7 @@ const PolaroidListItem = ({
)

return (
<div ref={ref}>
<div ref={ref} className="min-h-64">
{isVisible &&
(isFirstItem ? (
<BoardTutorial
Expand Down

0 comments on commit de49937

Please sign in to comment.