mirror of
https://github.com/leoncvlt/loconotion.git
synced 2024-08-30 18:12:12 +00:00
Fixes the iOS extra image bottom padding issue
(cherry picked from commit 3206d61ee1ef92c41480c178a29eddeb3de7594f)
This commit is contained in:
parent
b8a59cda17
commit
e9691ae206
@ -86,3 +86,12 @@ for (let i = 0; i < anchorLinks.length; i++) {
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
// fix the problem with images having an annoying extra padding
|
||||
// in Webkit renderers on iOS devices
|
||||
|
||||
const imgs = document.getElementsByTagName("img");
|
||||
|
||||
for (let i = 0; i < imgs.length; i++) {
|
||||
imgs[i].parentElement.setAttribute("style", "height:auto!important;");
|
||||
}
|
Loading…
Reference in New Issue
Block a user