From 2e3e42104829da974a0d5c6bf7d75e314a6cd3de Mon Sep 17 00:00:00 2001 From: DorraJaouad Date: Wed, 13 Dec 2023 07:58:41 +0100 Subject: [PATCH] fix(Quote): don't trim the quote when it is not image share with caption Signed-off-by: DorraJaouad --- .../Message/MessagePart/FilePreview.vue | 4 ++-- src/components/Quote.vue | 17 ++++++++++++++--- 2 files changed, 16 insertions(+), 5 deletions(-) diff --git a/src/components/MessagesList/MessagesGroup/Message/MessagePart/FilePreview.vue b/src/components/MessagesList/MessagesGroup/Message/MessagePart/FilePreview.vue index ffb34930c9f..56cc3d37597 100644 --- a/src/components/MessagesList/MessagesGroup/Message/MessagePart/FilePreview.vue +++ b/src/components/MessagesList/MessagesGroup/Message/MessagePart/FilePreview.vue @@ -380,8 +380,8 @@ export default { // Fallback for loading mimeicons (preview for audio files is not provided) if (this.previewAvailable !== 'yes' || this.mimetype.startsWith('audio/')) { return { - width: '128px', - height: '128px', + width: this.smallPreview ? '32px' : '128px', + height: this.smallPreview ? '32px' : '128px', } } diff --git a/src/components/Quote.vue b/src/components/Quote.vue index 8e3eb56e1e3..b0c1e40cd56 100644 --- a/src/components/Quote.vue +++ b/src/components/Quote.vue @@ -44,7 +44,7 @@ components.