mirror of
https://github.com/kevinveenbirkenbach/homepage.veen.world.git
synced 2025-07-07 03:25:12 +02:00
Removed unnecessary log messages
This commit is contained in:
parent
64db9a4e6a
commit
2632c21de3
@ -5,7 +5,6 @@
|
|||||||
function setFullWidth(enabled) {
|
function setFullWidth(enabled) {
|
||||||
var el = document.querySelector('.container, .container-fluid');
|
var el = document.querySelector('.container, .container-fluid');
|
||||||
if (!el) return;
|
if (!el) return;
|
||||||
console.log(el)
|
|
||||||
if (enabled) {
|
if (enabled) {
|
||||||
el.classList.replace('container', 'container-fluid');
|
el.classList.replace('container', 'container-fluid');
|
||||||
updateUrlFullWidth(true)
|
updateUrlFullWidth(true)
|
||||||
|
@ -5,25 +5,19 @@ let mainElement, originalContent, originalMainStyle, container, customScrollbar,
|
|||||||
function syncIframeHeight() {
|
function syncIframeHeight() {
|
||||||
const iframe = mainElement.querySelector("iframe");
|
const iframe = mainElement.querySelector("iframe");
|
||||||
if (iframe) {
|
if (iframe) {
|
||||||
console.log("Setting iframe height based on scroll-container inline styles...");
|
|
||||||
if (scrollbarContainer) {
|
if (scrollbarContainer) {
|
||||||
// Prefer inline height, otherwise inline max-height
|
// Prefer inline height, otherwise inline max-height
|
||||||
const inlineHeight = scrollbarContainer.style.height;
|
const inlineHeight = scrollbarContainer.style.height;
|
||||||
const inlineMax = scrollbarContainer.style.maxHeight;
|
const inlineMax = scrollbarContainer.style.maxHeight;
|
||||||
const target = inlineHeight || inlineMax;
|
const target = inlineHeight || inlineMax;
|
||||||
if (target) {
|
if (target) {
|
||||||
console.log("Using scroll-container inline style:", target);
|
|
||||||
iframe.style.height = target;
|
iframe.style.height = target;
|
||||||
} else {
|
} else {
|
||||||
console.warn("No inline height or max-height set on scroll-container. Using main element height instead.");
|
|
||||||
iframe.style.height = mainElement.style.height;
|
iframe.style.height = mainElement.style.height;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
console.log("No scroll-container found. Using main element height:", mainElement.style.height);
|
|
||||||
iframe.style.height = mainElement.style.height;
|
iframe.style.height = mainElement.style.height;
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
console.log("No iframe to resize.");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user