mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-29 20:19:22 +03:00
Don't thumbnail message inline images and show filename in title attribute
This commit is contained in:
parent
13f20cbeb0
commit
f488212c3d
5 changed files with 18 additions and 6 deletions
|
|
@ -308,6 +308,7 @@ export const
|
|||
attachment = findAttachmentByCid(value);
|
||||
if (attachment?.download) {
|
||||
oElement.src = attachment.linkPreview();
|
||||
oElement.title += ' ('+attachment.fileName+')';
|
||||
attachment.isInline(true);
|
||||
attachment.isLinked(true);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -133,12 +133,18 @@ export class AttachmentModel extends AbstractModel {
|
|||
return this.url || serverRequestRaw('View', this.download);
|
||||
}
|
||||
|
||||
/**
|
||||
* @returns {boolean}
|
||||
*/
|
||||
hasThumbnail() {
|
||||
return this.isThumbnail && !this.isLinked();
|
||||
}
|
||||
|
||||
/**
|
||||
* @returns {string}
|
||||
*/
|
||||
linkThumbnailPreviewStyle() {
|
||||
// return (this.isThumbnail && !this.isLinked())
|
||||
return this.isThumbnail
|
||||
thumbnailStyle() {
|
||||
return this.hasThumbnail()
|
||||
? 'background:url(' + serverRequestRaw('ViewThumbnail', this.download) + ')'
|
||||
: '';
|
||||
}
|
||||
|
|
|
|||
|
|
@ -318,6 +318,11 @@ html.rl-no-preview-pane {
|
|||
|
||||
.attachmentList {
|
||||
margin: 0;
|
||||
/*
|
||||
min-height: 4em;
|
||||
max-height: 15vh;
|
||||
overflow: auto;
|
||||
*/
|
||||
}
|
||||
|
||||
&:not(.selection-mode) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue