prevent image modal for emojis and make the emojis bigger
This commit is contained in:
@@ -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% {
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user