mirror of
https://github.com/mastodon/mastodon.git
synced 2024-05-19 10:28:08 +00:00
Merge 670e0cfc6d
into 5cd13ee4f1
This commit is contained in:
commit
e790c01522
|
@ -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 a new issue