mirror of https://github.com/tootsuite/mastodon
Merge 670e0cfc6d
into 6167894547
commit
80b3c14ac2
|
@ -120,6 +120,7 @@ class StatusContent extends PureComponent {
|
|||
link.addEventListener('click', this.onMentionClick.bind(this, mention), false);
|
||||
link.setAttribute('title', `@${mention.get('acct')}`);
|
||||
link.setAttribute('href', `/@${mention.get('acct')}`);
|
||||
link.classList.add('custom-css-mention');
|
||||
} else if (link.textContent[0] === '#' || (link.previousSibling && link.previousSibling.textContent && link.previousSibling.textContent[link.previousSibling.textContent.length - 1] === '#')) {
|
||||
link.addEventListener('click', this.onHashtagClick.bind(this, link.text), false);
|
||||
link.setAttribute('href', `/tags/${link.text.replace(/^#/, '')}`);
|
||||
|
|
|
@ -150,3 +150,8 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
.custom-css-mention {
|
||||
color: #0099ff;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue