From 191fa8271179513104bc9327c1ff64a2fc825525 Mon Sep 17 00:00:00 2001 From: Djeex Date: Tue, 2 Sep 2025 23:44:18 +0200 Subject: [PATCH] Cleaning --- src/public/js/lazy.js | 1 - src/webui/js/gallery-editor.js | 8 ++++---- src/webui/style/style.css | 3 +-- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/src/public/js/lazy.js b/src/public/js/lazy.js index 0dc1c3d..e31518e 100644 --- a/src/public/js/lazy.js +++ b/src/public/js/lazy.js @@ -9,7 +9,6 @@ window.addEventListener("DOMContentLoaded", () => { entries.forEach(entry => { if (entry.isIntersecting) { const img = entry.target; - console.log("Lazy-loading image:", img.dataset.src); img.src = img.dataset.src; img.onload = () => { img.classList.add("loaded"); diff --git a/src/webui/js/gallery-editor.js b/src/webui/js/gallery-editor.js index 926d5ab..d40a670 100644 --- a/src/webui/js/gallery-editor.js +++ b/src/webui/js/gallery-editor.js @@ -47,9 +47,9 @@ function renderGallery() { const div = document.createElement('div'); div.className = 'photo flex-item flex-column'; div.innerHTML = ` -
- -
+
+ +
@@ -93,7 +93,7 @@ function renderGallery() { removeAllBtnBottom.style.display = imagesToShow.length > 0 ? 'inline-block' : 'none'; } - // --- Fade-in effect for loaded images --- + // Fade-in effect for loaded images const fadeImages = document.querySelectorAll("img.fade-in-img"); fadeImages.forEach(img => { const onLoad = () => { diff --git a/src/webui/style/style.css b/src/webui/style/style.css index a5deb7a..eade54e 100644 --- a/src/webui/style/style.css +++ b/src/webui/style/style.css @@ -1093,5 +1093,4 @@ justify-content: center; position: relative; flex-wrap: nowrap; } -} - +} \ No newline at end of file