Skip to content

Commit 513cf82

Browse files
untitakeremersion
authored andcommitted
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 <[email protected]> Co-committed-by: Markus Unterwaditzer <[email protected]>
1 parent 9fef115 commit 513cf82

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

components/buffer.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,9 +146,10 @@ class LogLine extends Component {
146146
lineClass = "talk";
147147
let prefix = "<", suffix = ">";
148148
if (msg.command === "NOTICE") {
149+
lineClass += " notice";
149150
prefix = suffix = "-";
150151
}
151-
content = html`${prefix}${createNick(msg.prefix.name)}${suffix} ${linkify(stripANSI(text), onChannelClick)}`;
152+
content = html`<span class="nick-caret">${prefix}</span>${createNick(msg.prefix.name)}<span class="nick-caret">${suffix}</span> ${linkify(stripANSI(text), onChannelClick)}`;
152153
}
153154

154155
let allowedPrefixes = server.statusMsg;

0 commit comments

Comments
 (0)