From 47670a461c47e59bed7bbaf9962dbc7b6c31c74c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Christopher=20Cot=C3=A9?= Date: Tue, 11 Jan 2022 10:26:18 -0500 Subject: [PATCH] set image height on load --- src/index.js | 1 + 1 file changed, 1 insertion(+) 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 => { -- 2.45.3