correction bug imgsmall_bottom
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
last_checked: 1690072671
|
last_checked: 1690208978
|
||||||
data:
|
data:
|
||||||
-
|
-
|
||||||
title: 'macOS 13.0 Ventura Apache Setup: Upgrading Homebrew'
|
title: 'macOS 13.0 Ventura Apache Setup: Upgrading Homebrew'
|
||||||
@@ -39,7 +39,7 @@ data:
|
|||||||
title: 'Grav 1.7 CLI Self-Upgrade Bug'
|
title: 'Grav 1.7 CLI Self-Upgrade Bug'
|
||||||
url: 'https://getgrav.org/blog/grav-170-cli-self-upgrade-bug'
|
url: 'https://getgrav.org/blog/grav-170-cli-self-upgrade-bug'
|
||||||
date: 1611222900
|
date: 1611222900
|
||||||
nicetime: '2 years ago'
|
nicetime: '3 years ago'
|
||||||
-
|
-
|
||||||
title: 'Grav 1.7 Released!'
|
title: 'Grav 1.7 Released!'
|
||||||
url: 'https://getgrav.org/blog/grav-1.7-released'
|
url: 'https://getgrav.org/blog/grav-1.7-released'
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@@ -1,4 +1,4 @@
|
|||||||
last_checked: 1690085460
|
last_checked: 1690208978
|
||||||
data:
|
data:
|
||||||
feed:
|
feed:
|
||||||
-
|
-
|
||||||
|
|||||||
@@ -50,12 +50,17 @@ class setMarginTexts extends Paged.Handler {
|
|||||||
let bottomVignettes = document.querySelectorAll('.imgsmall_bottom'); // pour les images en bas dans les pages avec du texte
|
let bottomVignettes = document.querySelectorAll('.imgsmall_bottom'); // pour les images en bas dans les pages avec du texte
|
||||||
for (let bottomVignette of bottomVignettes) {
|
for (let bottomVignette of bottomVignettes) {
|
||||||
let pageBottom = bottomVignette.closest('.pagedjs_area').getBoundingClientRect().bottom;
|
let pageBottom = bottomVignette.closest('.pagedjs_area').getBoundingClientRect().bottom;
|
||||||
let textBottom = bottomVignette.previousElementSibling.getBoundingClientRect().bottom;
|
|
||||||
let vignetteSize = bottomVignette.getBoundingClientRect().height;
|
let vignetteSize = bottomVignette.getBoundingClientRect().height;
|
||||||
if (bottomVignette.previousElementSibling.classList.contains('labeur')) {
|
if (bottomVignette.previousElementSibling) {
|
||||||
bottomVignette.style.marginTop = `${(pageBottom - textBottom) - vignetteSize}px`;
|
let textBottom = bottomVignette.previousElementSibling.getBoundingClientRect().bottom;
|
||||||
|
if (bottomVignette.previousElementSibling.classList.contains('labeur')) {
|
||||||
|
bottomVignette.style.marginTop = `${(pageBottom - textBottom) - vignetteSize}px`;
|
||||||
|
}
|
||||||
|
bottomVignette.style.transform = 'translateY(12px)';
|
||||||
|
} else {
|
||||||
|
let vignetteBottom = bottomVignette.getBoundingClientRect().bottom;
|
||||||
|
bottomVignette.style.transform = `translateY(${pageBottom - vignetteBottom}px)`;
|
||||||
}
|
}
|
||||||
bottomVignette.style.transform = 'translateY(12px)';
|
|
||||||
}
|
}
|
||||||
// éléments justifiés pas nécessaires
|
// éléments justifiés pas nécessaires
|
||||||
let justifiedSplitEl = document.querySelectorAll("[data-align-last-split-element='justify']");
|
let justifiedSplitEl = document.querySelectorAll("[data-align-last-split-element='justify']");
|
||||||
|
|||||||
Reference in New Issue
Block a user