mirror of
https://github.com/mudler/LocalAI.git
synced 2024-12-24 14:56:41 +00:00
feat(gallery): lazy load images (#3246)
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
This commit is contained in:
parent
d6c4e751f2
commit
c50e0edcb8
@ -503,6 +503,7 @@ func ListModels(models []*gallery.GalleryModel, processTracker ProcessTracker, g
|
|||||||
// "class": "rounded-t-lg object-fit object-center h-96",
|
// "class": "rounded-t-lg object-fit object-center h-96",
|
||||||
"class": "rounded-t-lg max-h-48 max-w-96 object-cover mt-3",
|
"class": "rounded-t-lg max-h-48 max-w-96 object-cover mt-3",
|
||||||
"src": m.Icon,
|
"src": m.Icon,
|
||||||
|
"loading": "lazy",
|
||||||
}),
|
}),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
Loading…
Reference in New Issue
Block a user