prevent image modal for emojis and make the emojis bigger

This commit is contained in:
2026-05-24 20:53:33 +02:00
parent 5ce2371b41
commit 6c85a86959
2 changed files with 8 additions and 3 deletions

View File

@@ -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);