zoom for the attachment images

This commit is contained in:
zadam
2023-07-14 21:06:15 +02:00
parent fed5f1a7d2
commit 5f6fded833
3 changed files with 27 additions and 9 deletions

View File

@@ -167,7 +167,9 @@ export default class AttachmentDetailWidget extends BasicWidget {
this.$wrapper.find('.attachment-details')
.text(`Role: ${this.attachment.role}, Size: ${utils.formatSize(this.attachment.contentLength)}`);
this.$wrapper.find('.attachment-actions-container').append(this.attachmentActionsWidget.render());
this.$wrapper.find('.attachment-content-wrapper').append((await contentRenderer.getRenderedContent(this.attachment)).$renderedContent);
const {$renderedContent} = await contentRenderer.getRenderedContent(this.attachment, { imageHasZoom: true });
this.$wrapper.find('.attachment-content-wrapper').append($renderedContent);
}
async copyAttachmentLinkToClipboard() {