mirror of
https://codeberg.org/emersion/gamja
synced 2025-03-12 15:33:47 +01: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
@ -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…
x
Reference in New Issue
Block a user