From 56de3d2f528a818835c04baa1c1686f91fc42161 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Mon, 24 Jan 2022 19:53:17 +0200 Subject: [PATCH] fix too-many-attachments in notifications column --- src/components/status_content/status_content.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/status_content/status_content.js b/src/components/status_content/status_content.js index 184f2783..dec8914a 100644 --- a/src/components/status_content/status_content.js +++ b/src/components/status_content/status_content.js @@ -48,12 +48,12 @@ const StatusContent = { return true }, attachmentSize () { - if ((this.mergedConfig.hideAttachments && !this.inConversation) || + if (this.compact) { + return 'small' + } else if ((this.mergedConfig.hideAttachments && !this.inConversation) || (this.mergedConfig.hideAttachmentsInConv && this.inConversation) || (this.status.attachments.length > this.maxThumbnails)) { return 'hide' - } else if (this.compact) { - return 'small' } return 'normal' },