Skip to content

Commit

Permalink
Fix (gallery): Fix stretchx and stretchy to only show one image
Browse files Browse the repository at this point in the history
Fixes regression in #30
  • Loading branch information
leojonathanoh committed Sep 25, 2021
1 parent a93cded commit a90e2eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions webize
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ cat - >> "$indexHtm" <<'EOF'
for (var i = 0; i < images.length; i++) {
images[i].parentNode.style.display = "inline-block";
images[i].parentNode.style.width = "100vw";
images[i].parentNode.style.height = "auto";
images[i].parentNode.style.height = "100vh";
images[i].style.width = "100vw";
images[i].style.height = "auto";
}
Expand All @@ -476,7 +476,7 @@ cat - >> "$indexHtm" <<'EOF'
var stretchy = function() {
for (var i = 0; i < images.length; i++) {
images[i].parentNode.style.display = "inline-block";
images[i].parentNode.style.width = "auto";
images[i].parentNode.style.width = "100vw";
images[i].parentNode.style.height = "100vh";
images[i].style.width = "auto";
images[i].style.height = "100vh";
Expand Down

0 comments on commit a90e2eb

Please sign in to comment.