mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-29 12:09:20 +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
|
|
@ -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) + ')'
|
||||
: '';
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue