[FIX] mail: smaller thumbnails in attachment list
Before this commit, when showing list of attachments in a message or attachment box, the images were too big. This made it hard to see other content due to the big size of the images. This commit fixes the issue by reducing the size of image previews when in context of many attachments. When a message has a single image, it keeps showing a big preview of this image. Also slightly reduce size of images in attachment box, as they were also too big. closes odoo/odoo#134941 X-original-commit: cf2069e0f7cd36c4d2b3bcc79fdde7e0425e2e52 Signed-off-by: Sébastien Theys (seb) <seb@odoo.com> Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
This commit is contained in:
@@ -110,7 +110,7 @@
|
||||
t-if="message.attachments.length > 0"
|
||||
attachments="message.attachments.map((a) => a)"
|
||||
unlinkAttachment.bind="onClickAttachmentUnlink"
|
||||
imagesHeight="300"/>
|
||||
imagesHeight="message.attachments.length === 1 ? 300 : 75"/>
|
||||
<LinkPreviewList t-if="message.linkPreviews.length > 0 and store.hasLinkPreviewFeature and !message.linkPreviewSquash" linkPreviews="message.linkPreviews" deletable="deletable"/>
|
||||
</div>
|
||||
<t t-if="!message.hasTextContent or env.inChatWindow" t-call="mail.Message.actions"/>
|
||||
|
||||
@@ -98,7 +98,7 @@
|
||||
<AttachmentList
|
||||
attachments="attachments"
|
||||
unlinkAttachment.bind="unlinkAttachment"
|
||||
imagesHeight="160"
|
||||
imagesHeight="100"
|
||||
/>
|
||||
<FileUploader multiUpload="true" fileUploadClass="'o-mail-Chatter-fileUploader'" onUploaded.bind="onUploaded" onClick="(ev) => this.onClickAttachFile(ev)">
|
||||
<t t-set-slot="toggler">
|
||||
|
||||
Reference in New Issue
Block a user