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) {
isMobile = e.detail.isMobile;
document.getElementById('MailMessageList').content.querySelector('.messageCheckbox')
.append(Element.fromHTML(`<img class="fromPic" data-bind="fromPic:$data" loading="lazy">`));
document.getElementById('MailMessageList').content.querySelectorAll('.messageCheckbox')
.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',
AUTHOR = 'SnappyMail',
URL = 'https://snappymail.eu/',
VERSION = '1.5',
RELEASE = '2022-12-15',
VERSION = '1.6',
RELEASE = '2022-12-23',
REQUIRED = '2.23.0',
CATEGORY = 'Contacts',
LICENSE = 'MIT',

View file

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