Avatars plugin fix for new MessageList group by day option

This commit is contained in:
the-djmaze 2022-12-23 12:27:46 +01:00
parent b0ed74575f
commit 16e513cf98
3 changed files with 5 additions and 5 deletions

View file

@ -226,8 +226,8 @@
if ('MailMessageList' === e.detail.viewModelTemplateID) { if ('MailMessageList' === e.detail.viewModelTemplateID) {
isMobile = e.detail.isMobile; isMobile = e.detail.isMobile;
document.getElementById('MailMessageList').content.querySelector('.messageCheckbox') document.getElementById('MailMessageList').content.querySelectorAll('.messageCheckbox')
.append(Element.fromHTML(`<img class="fromPic" data-bind="fromPic:$data" loading="lazy">`)); .forEach(el => el.append(Element.fromHTML(`<img class="fromPic" data-bind="fromPic:$data" loading="lazy">`)));
} }
}); });

View file

@ -6,8 +6,8 @@ class AvatarsPlugin extends \RainLoop\Plugins\AbstractPlugin
NAME = 'Avatars', NAME = 'Avatars',
AUTHOR = 'SnappyMail', AUTHOR = 'SnappyMail',
URL = 'https://snappymail.eu/', URL = 'https://snappymail.eu/',
VERSION = '1.5', VERSION = '1.6',
RELEASE = '2022-12-15', RELEASE = '2022-12-23',
REQUIRED = '2.23.0', REQUIRED = '2.23.0',
CATEGORY = 'Contacts', CATEGORY = 'Contacts',
LICENSE = 'MIT', LICENSE = 'MIT',

View file

@ -20,5 +20,5 @@
.messageCheckbox .fromPic { .messageCheckbox .fromPic {
margin: 0 0 -0.4em 0.4em; margin: 0 0 -0.4em 0.4em;
height: 1.5em; height: 1.5em;
max-width: 1.5em; width: 1.5em;
} }