Skip to content

Commit 2a8f43f

Browse files
committed
apply to wrapper only
1 parent 9cce546 commit 2a8f43f

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

client/src/views/Collection.jsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ function Collection({ isSelfProfile }) {
161161
</div>
162162
)}
163163
<LazyLoadImage
164-
effect="blur"
164+
effect='blur'
165165
src={image.lowqSrc}
166166
onClick={() => {
167167
setIndex(index)
@@ -170,7 +170,7 @@ function Collection({ isSelfProfile }) {
170170
onLoad={() => {
171171
setLoadedImages((prev) => [...prev, image.lowqSrc])
172172
}}
173-
className="absolute top-0 left-0 h-full w-full object-cover"
173+
wrapperClassName="absolute top-0 left-0 h-full w-full object-cover"
174174
/>
175175
{loadedImages.indexOf(image.lowqSrc) >= 0 && (
176176
<LazyLoadImage
@@ -183,8 +183,7 @@ function Collection({ isSelfProfile }) {
183183
onLoad={() => {
184184
setLoadedImages((prev) => [...prev, image.src])
185185
}}
186-
className='absolute top-0 left-0 h-full w-full object-cover'
187-
wrapperClassName={clsx({
186+
wrapperClassName={clsx('absolute top-0 left-0 h-full w-full object-cover', {
188187
'hidden': loadedImages.indexOf(image.src) < 0,
189188
})}
190189
/>

0 commit comments

Comments
 (0)