From 6c85a8695969cc7ddced66e2ab0371d271e6c771 Mon Sep 17 00:00:00 2001 From: Kibi Kelburton Date: Sun, 24 May 2026 20:53:33 +0200 Subject: [PATCH] prevent image modal for emojis and make the emojis bigger --- public/s/css/f0ckm.css | 7 ++++++- public/s/js/f0ckm.js | 4 ++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/public/s/css/f0ckm.css b/public/s/css/f0ckm.css index c79044f..287966d 100644 --- a/public/s/css/f0ckm.css +++ b/public/s/css/f0ckm.css @@ -8322,10 +8322,15 @@ span.badge.badge-current { /* Smaller emojis in the narrow left sidebar */ body.layout-modern .comment-content img.emoji { height: auto; - max-width: 60px !important; + max-width: 200px !important; vertical-align: middle; } +body.layout-legacy .comment-content img.emoji { + height: auto; + max-width: 200px !important; + vertical-align: middle; +} @keyframes flashGreen { 0% { diff --git a/public/s/js/f0ckm.js b/public/s/js/f0ckm.js index 97aab57..e3b38c5 100644 --- a/public/s/js/f0ckm.js +++ b/public/s/js/f0ckm.js @@ -8191,9 +8191,9 @@ document.addEventListener('DOMContentLoaded', () => { return; } - // Comment embedded images → open in image modal + // Comment embedded images → open in image modal (skip emoji images) const commentImg = e.target.closest('.comment-content img, .comment-attachments img'); - if (commentImg) { + if (commentImg && !commentImg.classList.contains('emoji')) { e.preventDefault(); e.stopPropagation(); openImageModal(commentImg.src);