Don't thumbnail message inline images and show filename in title attribute

This commit is contained in:
the-djmaze 2022-10-06 23:43:24 +02:00
parent 13f20cbeb0
commit f488212c3d
5 changed files with 18 additions and 6 deletions

View file

@ -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) + ')'
: '';
}