From dc14695f8a46fd60c4f39223afbfaf55e95bf077 Mon Sep 17 00:00:00 2001 From: Claire Date: Wed, 8 Jan 2025 18:24:57 +0100 Subject: [PATCH] Fix extraneous margins below CW in absence of mentions (#2936) --- .../flavours/glitch/components/mentions_placeholder.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/javascript/flavours/glitch/components/mentions_placeholder.jsx b/app/javascript/flavours/glitch/components/mentions_placeholder.jsx index dde4d77a84..0829bcc101 100644 --- a/app/javascript/flavours/glitch/components/mentions_placeholder.jsx +++ b/app/javascript/flavours/glitch/components/mentions_placeholder.jsx @@ -3,7 +3,7 @@ import ImmutablePropTypes from 'react-immutable-proptypes'; import { Permalink } from 'flavours/glitch/components/permalink'; export const MentionsPlaceholder = ({ status }) => { - if (status.get('spoiler_text').length === 0 || !status.get('mentions')) { + if (status.get('spoiler_text').length === 0 || !status.get('mentions') || status.get('mentions').isEmpty()) { return null; }