Merge branch 'mentions-ltr' into 'main'
StatusContent: ensure inline mentions are always LTR See merge request soapbox-pub/soapbox!2794
This commit is contained in:
commit
923d0fea20
1 changed files with 1 additions and 0 deletions
|
@ -95,6 +95,7 @@ const StatusContent: React.FC<IStatusContent> = ({
|
|||
if (mention) {
|
||||
link.addEventListener('click', onMentionClick.bind(link, mention), false);
|
||||
link.setAttribute('title', mention.acct);
|
||||
link.setAttribute('dir', 'ltr');
|
||||
} else if (link.textContent?.charAt(0) === '#' || (link.previousSibling?.textContent?.charAt(link.previousSibling.textContent.length - 1) === '#')) {
|
||||
link.addEventListener('click', onHashtagClick.bind(link, link.text), false);
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue