From 0af53bf08af38dc20451b1c55f7ab52246645816 Mon Sep 17 00:00:00 2001 From: Kibi Kelburton Date: Thu, 16 Jul 2026 08:47:24 +0200 Subject: [PATCH] scrololololololol --- public/s/js/sidebar-activity.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/public/s/js/sidebar-activity.js b/public/s/js/sidebar-activity.js index 05357db..3c020f4 100644 --- a/public/s/js/sidebar-activity.js +++ b/public/s/js/sidebar-activity.js @@ -765,6 +765,9 @@ fetchSidebarYoutubeTitles(node); playSidebarEmojiVideos(node); }); + // Deferred re-check for image comments — mirrors renderFromCache behaviour. + // Images in newly appended nodes may not be laid out yet at append time. + setTimeout(() => addedNodes.forEach(node => checkOverflow(node)), 1000); // Auto-play converted GIF videos and webm emoji stickers container.querySelectorAll('video.autoplay-gif').forEach(v => { v.autoplay = true; v.muted = true; v.play().catch(() => { v.addEventListener('canplay', () => v.play().catch(() => { }), { once: true }); }); }); }