Spatie Media Library not show images correctly in grid

When using the Spatie Media Library component it sometimes loads correctly and other times it loads incorrectly. I don't understand why since there is no error in the console. I think it only happens when the layout is grid because I have another component of an image that always looks good.
SpatieMediaLibraryFileUpload::make('images_upload')
->collection('property_images')
->multiple()
->responsiveImages()
->image()
->imageEditor()
->label('Imágenes')
->imagePreviewHeight('250')
->panelLayout('grid')
->columnSpanFull()
SpatieMediaLibraryFileUpload::make('images_upload')
->collection('property_images')
->multiple()
->responsiveImages()
->image()
->imageEditor()
->label('Imágenes')
->imagePreviewHeight('250')
->panelLayout('grid')
->columnSpanFull()
No description
No description
5 Replies
toeknee
toeknee14h ago
I guess the image timed out loading?
Daniel Reales
Daniel RealesOP13h ago
The image weighs little as you see there. Sometimes appears like this:
No description
Daniel Reales
Daniel RealesOP13h ago
And sometines well:
No description
toeknee
toeknee13h ago
check the network log if you can recreate it. Likely a server issue / timeout / fetching issue somewhre
Daniel Reales
Daniel RealesOP11h ago
only happens with panelLayout('grid'): If i remove this line it's works always.
No description

Did you find this page helpful?