mirror of
https://github.com/elk-zone/elk.git
synced 2024-09-06 12:19:08 +01:00
fix: leading space when hiding mentions
This commit is contained in:
parent
fab1eb13b3
commit
359cc4935b
1 changed files with 1 additions and 1 deletions
|
@ -529,7 +529,7 @@ function transformCollapseMentions(status?: mastodon.v1.Status, inReplyToStatus?
|
||||||
// But this covers the majority of cases.
|
// But this covers the majority of cases.
|
||||||
const showMentions = !(contextualMentionsCount === 0 || (mentionsCount === 1 && status?.inReplyToAccountId))
|
const showMentions = !(contextualMentionsCount === 0 || (mentionsCount === 1 && status?.inReplyToAccountId))
|
||||||
const grouped = contextualMentionsCount > 2
|
const grouped = contextualMentionsCount > 2
|
||||||
if (grouped)
|
if (!showMentions || grouped)
|
||||||
trimContentStart?.()
|
trimContentStart?.()
|
||||||
|
|
||||||
const contextualChildren = children.slice(mentions.length)
|
const contextualChildren = children.slice(mentions.length)
|
||||||
|
|
Loading…
Reference in a new issue