Fixes the iOS extra image bottom padding issue

(cherry picked from commit 3206d61ee1ef92c41480c178a29eddeb3de7594f)
This commit is contained in:
Alexey Leshchenko 2021-05-21 08:12:49 +03:00
parent b8a59cda17
commit e9691ae206

View File

@ -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;");
}