From: Christopher Coté Date: Tue, 11 Jan 2022 15:26:18 +0000 (-0500) Subject: set image height on load X-Git-Url: http://git.entropealabs.com/?a=commitdiff_plain;h=47670a461c47e59bed7bbaf9962dbc7b6c31c74c;p=photography.git set image height on load --- diff --git a/src/index.js b/src/index.js index 92d3cdf6..f27a5934 100644 --- a/src/index.js +++ b/src/index.js @@ -116,6 +116,7 @@ function image(image){ let i = document.createElement("img"); i.src = server + image.path; i.onclick = (e) => set_hash(image.hash); + i.style.height = image.height + "px"; let u = document.createElement("ul"); u.className = "image-tags"; image.tags.forEach(t => {