Removed unnecessary log messages

This commit is contained in:
Kevin Veen-Birkenbach 2025-07-05 20:33:08 +02:00
parent 64db9a4e6a
commit 2632c21de3
No known key found for this signature in database
GPG Key ID: 44D8F11FD62F878E
2 changed files with 0 additions and 7 deletions

View File

@ -5,7 +5,6 @@
function setFullWidth(enabled) {
var el = document.querySelector('.container, .container-fluid');
if (!el) return;
console.log(el)
if (enabled) {
el.classList.replace('container', 'container-fluid');
updateUrlFullWidth(true)

View File

@ -5,25 +5,19 @@ let mainElement, originalContent, originalMainStyle, container, customScrollbar,
function syncIframeHeight() {
const iframe = mainElement.querySelector("iframe");
if (iframe) {
console.log("Setting iframe height based on scroll-container inline styles...");
if (scrollbarContainer) {
// Prefer inline height, otherwise inline max-height
const inlineHeight = scrollbarContainer.style.height;
const inlineMax = scrollbarContainer.style.maxHeight;
const target = inlineHeight || inlineMax;
if (target) {
console.log("Using scroll-container inline style:", target);
iframe.style.height = target;
} else {
console.warn("No inline height or max-height set on scroll-container. Using main element height instead.");
iframe.style.height = mainElement.style.height;
}
} else {
console.log("No scroll-container found. Using main element height:", mainElement.style.height);
iframe.style.height = mainElement.style.height;
}
} else {
console.log("No iframe to resize.");
}
}