Fix image size for svg files

This commit is contained in:
Alexander Rosenberg 2024-10-28 14:00:08 -07:00
parent 51e4071bb5
commit 7851d5f774
Signed by: Zander671
GPG Key ID: 5FD0394ADBD72730

View File

@ -254,7 +254,12 @@
file_name_prop.textContent = ie.parentElement.getAttribute('data-name'); file_name_prop.textContent = ie.parentElement.getAttribute('data-name');
file_size_prop.textContent = ie.parentElement.getAttribute('data-size') + " B"; file_size_prop.textContent = ie.parentElement.getAttribute('data-size') + " B";
image_type_prop.textContent = ie.parentElement.getAttribute('data-type'); 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');
}
} }
} }