fix: spaces in images
This commit is contained in:
parent
0c43a48349
commit
5d1a49ab06
3 changed files with 24 additions and 6 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue