From ac43e6e238b55a22ea1c61199f4f97f774b9076d Mon Sep 17 00:00:00 2001 From: Leonard Jonathan Oh Date: Tue, 31 Aug 2021 07:50:49 +0000 Subject: [PATCH] Fix (gallery): Fix label background not being hidden when labels are disabled --- webize | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webize b/webize index 4e68afb..4a0ba71 100755 --- a/webize +++ b/webize @@ -518,13 +518,13 @@ cat - >> "$indexHtm" <<'EOF' var showAllImageLabels = function() { for (var i = 0; i < images.length; i++) { var imageholder = images[i].parentNode; - imageholder.getElementsByTagName("label")[0].style.fontSize = "1vw"; + imageholder.getElementsByTagName("label")[0].style.opacity = "1.0"; } }; var hideAllImageLabels = function() { for (var i = 0; i < images.length; i++) { var imageholder = images[i].parentNode; - imageholder.getElementsByTagName("label")[0].style.fontSize = "0"; + imageholder.getElementsByTagName("label")[0].style.opacity = "0.0"; } };