mirror of
https://github.com/wah-su/wahs.wah.su.git
synced 2025-04-05 15:54:37 +00:00
fix index page image loading if masonry grid is enabled
This commit is contained in:
parent
8110fc3772
commit
87a27f137a
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ function renderImage(endpoint, bucket, prefix, isrc, iid, placeholder) {
|
|||
placeholder.appendChild(blurImg);
|
||||
placeholder.appendChild(Img);
|
||||
|
||||
if (view == "masonry") {
|
||||
if (view == "masonry" && ["/images", "/images/", "/images/index.html"].includes(window.location.pathname)) {
|
||||
container.classList.remove(
|
||||
"xl:grid-cols-[repeat(auto-fill,minmax(20%,1fr))]"
|
||||
);
|
||||
|
|
Loading…
Add table
Reference in a new issue