mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2025-06-20 18:08:00 +02:00
Fix masonry layout
This commit is contained in:
parent
fa9ff7f957
commit
b4574646fd
@ -3295,10 +3295,10 @@ function refreshGallery(newsearch = false) {
|
||||
return
|
||||
}
|
||||
json.forEach(item => {
|
||||
container.appendChild(galleryImage(item))
|
||||
galleryImageContainer.appendChild(galleryImage(item))
|
||||
})
|
||||
// Wait for all images to be loaded
|
||||
Promise.all(Array.from(container.querySelectorAll("img")).map(img => {
|
||||
Promise.all(Array.from(galleryImageContainer.querySelectorAll("img")).map(img => {
|
||||
if (img.complete)
|
||||
{
|
||||
return Promise.resolve(img.naturalHeight !== 0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user