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 */
|
/* 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% {
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user