Procházet zdrojové kódy

correction pb h3 bis

Valentin před 2 roky
rodič
revize
01f797f369
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      user/themes/carnet-atterrissage/js/layout.js

+ 1 - 1
user/themes/carnet-atterrissage/js/layout.js

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