From 7851d5f774dacdcd749ac6a83ba96a354c8daada Mon Sep 17 00:00:00 2001 From: Alexander Rosenberg Date: Mon, 28 Oct 2024 14:00:08 -0700 Subject: [PATCH] Fix image size for svg files --- root/view.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/root/view.php b/root/view.php index 1cc9943..1eb25f3 100644 --- a/root/view.php +++ b/root/view.php @@ -254,7 +254,12 @@ file_name_prop.textContent = ie.parentElement.getAttribute('data-name'); file_size_prop.textContent = ie.parentElement.getAttribute('data-size') + " B"; image_type_prop.textContent = ie.parentElement.getAttribute('data-type'); - image_size_prop.textContent = ie.getAttribute('data-size'); + if (ie.getAttribute('data-size') == "x") { + res_prop_wrapper.style.display = "none"; + } else { + res_prop_wrapper.style.display = "flex"; + image_size_prop.textContent = ie.getAttribute('data-size'); + } } }