You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, if a wrong url to image is provided the gallery displays div with class g-image-error-message. Is it possible to provide custom template for it?
Currently in version 8.0.4 when autoHeight is set to true and max-height is set, when an image fails to load the original error template is rendered with height of 16px, no matter that the GalleryItemComponent has min-height of 300px for example.
This seems to do the trick, but in case you have any other suggestions I'm glad to hear.
ps. If all of the images can't be loaded the height of the .g-box is 0 and the fallback is not visible at all.
It's kinda difficult for me to go back to an older version, I don't remember what was possible at that version and whether it was fixed in a newer version. it's a small project you know. I can only deal and investigate with the latest version.
Activity
MurhafSousli commentedon Jan 7, 2025
You can provide a custom template but this means you need to handle the display of the images as well
mmart1n commentedon Jan 7, 2025
Currently in version
8.0.4
whenautoHeight
is set to true and max-height is set, when an image fails to load the original error template is rendered with height of16px
, no matter that theGalleryItemComponent
has min-height of 300px for example.This seems to do the trick, but in case you have any other suggestions I'm glad to hear.
ps. If all of the images can't be loaded the height of the

.g-box
is 0 and the fallback is not visible at all.MurhafSousli commentedon Jan 13, 2025
It's kinda difficult for me to go back to an older version, I don't remember what was possible at that version and whether it was fixed in a newer version. it's a small project you know. I can only deal and investigate with the latest version.