fix: spaces in images

This commit is contained in:
trisua 2025-07-25 22:26:06 -04:00
parent 0c43a48349
commit 5d1a49ab06
3 changed files with 24 additions and 6 deletions

View file

@ -321,15 +321,30 @@ globalThis.toggle_metadata_css = (e) => {
// reset colored text
for (const element of Array.from(
document.querySelectorAll(".color_block"),
document.querySelectorAll("#content_rect .color_block"),
)) {
element.removeAttribute("style");
element.classList.remove("color_block");
}
// strikethrough auto theme since it's disabled
document.getElementById("auto_theme").style.textDecoration =
"line-through";
if (document.getElementById("auto_theme")) {
document.getElementById("auto_theme").style.textDecoration =
"line-through";
}
// remove styles
for (const element of Array.from(
document.querySelectorAll("#content_rect style"),
)) {
element.remove();
}
for (const element of Array.from(
document.querySelectorAll("#content_rect [style]"),
)) {
element.removeAttribute("style");
}
} else {
window.location.reload();
}