We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c18ec6b commit 4c4d20eCopy full SHA for 4c4d20e
src/components/react/Gallery.tsx
@@ -125,6 +125,9 @@ const Gallery: FC<Props> = ({ images }) => {
125
))}
126
</div>
127
128
+ {/* control threshold with margin-top */}
129
+ <div ref={observerTarget} className="mt-0" />
130
+
131
<div
132
className={cn(
133
'flex items-center justify-center transition-all duration-500 ease-in-out',
@@ -133,9 +136,6 @@ const Gallery: FC<Props> = ({ images }) => {
136
>
134
137
{shouldShowLoader && <PiSpinnerGapBold className="size-10 sm:size-12 animate-spin mt-4" />}
135
138
-
- {/* control threshold with margin-top */}
- <div ref={observerTarget} className="mt-0" />
139
</>
140
);
141
};
0 commit comments