mirror of
https://codeberg.org/emersion/gamja.git
synced 2025-04-09 04:04:23 -04:00
Add nick-caret class
I'd like to apply a userstyle to this text, and in order to do that I need a CSS class. Co-authored-by: Markus Unterwaditzer <markus-tarpit+git@unterwaditzer.net> Co-committed-by: Markus Unterwaditzer <markus-tarpit+git@unterwaditzer.net>
This commit is contained in:
parent
9fef11564d
commit
513cf825a5
1 changed files with 2 additions and 1 deletions
|
@ -146,9 +146,10 @@ class LogLine extends Component {
|
|||
lineClass = "talk";
|
||||
let prefix = "<", suffix = ">";
|
||||
if (msg.command === "NOTICE") {
|
||||
lineClass += " notice";
|
||||
prefix = suffix = "-";
|
||||
}
|
||||
content = html`${prefix}${createNick(msg.prefix.name)}${suffix} ${linkify(stripANSI(text), onChannelClick)}`;
|
||||
content = html`<span class="nick-caret">${prefix}</span>${createNick(msg.prefix.name)}<span class="nick-caret">${suffix}</span> ${linkify(stripANSI(text), onChannelClick)}`;
|
||||
}
|
||||
|
||||
let allowedPrefixes = server.statusMsg;
|
||||
|
|
Loading…
Add table
Reference in a new issue