correction pb h3 bis

This commit is contained in:
Valentin
2023-07-19 19:34:47 +02:00
parent 2d6ee7c833
commit 01f797f369
+1 -1
View File
@@ -144,7 +144,7 @@ class setMarginTexts extends Paged.Handler {
h3.nextSibling.style.position = "absolute";
h3.nextSibling.style.top = "5%";
}
if (h3.closest('.pagedjs_page').nextElementSibling.querySelector('.has-children ')?.firstChild.firstChild.firstChild.tagName == "IMG") {
if (h3.closest('.pagedjs_page').nextElementSibling?.querySelector('.has-children ')?.firstChild.firstChild.firstChild.tagName == "IMG") {
let coverImg = h3.closest('.pagedjs_page').nextElementSibling.querySelector('.has-children ').firstChild.childNodes[0];
coverImg.style.position = "absolute";
coverImg.style.top = "-22mm";