diff --git a/bundles/loconotion.js b/bundles/loconotion.js index af56fb7..93ce907 100644 --- a/bundles/loconotion.js +++ b/bundles/loconotion.js @@ -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;"); +} \ No newline at end of file