mirror of
https://github.com/leoncvlt/loconotion.git
synced 2024-08-30 18:12:12 +00:00
Fix excess padding below images
This commit is contained in:
parent
d8e5c9b351
commit
9c5a0d7aac
@ -94,5 +94,8 @@ const imgs = document.querySelectorAll("img:not(.notion-emoji)");
|
||||
|
||||
for (let i = 0; i < imgs.length; i++) {
|
||||
parent = imgs[i].parentElement
|
||||
parent.setAttribute("style", parent.getAttribute("style") + "; height:auto!important;");
|
||||
let style = parent.getAttribute("style")
|
||||
style = style.replace(/padding-bottom: 133\.333\%;/, "")
|
||||
style = style + "; height:auto!important;"
|
||||
parent.setAttribute("style", style);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user