mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-12-17 18:18:07 +00:00
Fix extraneous margins below CW in absence of mentions (#2936)
This commit is contained in:
@@ -3,7 +3,7 @@ import ImmutablePropTypes from 'react-immutable-proptypes';
|
|||||||
import { Permalink } from 'flavours/glitch/components/permalink';
|
import { Permalink } from 'flavours/glitch/components/permalink';
|
||||||
|
|
||||||
export const MentionsPlaceholder = ({ status }) => {
|
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;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user