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

@@ -8322,10 +8322,15 @@ span.badge.badge-current {
/* Smaller emojis in the narrow left sidebar */ /* Smaller emojis in the narrow left sidebar */
body.layout-modern .comment-content img.emoji { body.layout-modern .comment-content img.emoji {
height: auto; height: auto;
max-width: 60px !important; max-width: 200px !important;
vertical-align: middle; vertical-align: middle;
} }
body.layout-legacy .comment-content img.emoji {
height: auto;
max-width: 200px !important;
vertical-align: middle;
}
@keyframes flashGreen { @keyframes flashGreen {
0% { 0% {

View File

@@ -8191,9 +8191,9 @@ document.addEventListener('DOMContentLoaded', () => {
return; 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'); const commentImg = e.target.closest('.comment-content img, .comment-attachments img');
if (commentImg) { if (commentImg && !commentImg.classList.contains('emoji')) {
e.preventDefault(); e.preventDefault();
e.stopPropagation(); e.stopPropagation();
openImageModal(commentImg.src); openImageModal(commentImg.src);