mirror of
https://codeberg.org/emersion/gamja.git
synced 2025-04-21 10:00:52 -04:00
Indent channels and nicks in buffer list
This commit is contained in:
parent
b429243573
commit
4c62b7571e
2 changed files with 9 additions and 5 deletions
|
@ -29,15 +29,16 @@ function BufferItem(props) {
|
|||
name = getNetworkName(props.network, props.bouncerNetwork, props.bouncer);
|
||||
}
|
||||
|
||||
var activeClass = props.active ? "active" : "";
|
||||
|
||||
var unreadClass = "";
|
||||
var classes = ["type-" + props.buffer.type];
|
||||
if (props.active) {
|
||||
classes.push("active");
|
||||
}
|
||||
if (props.buffer.unread != Unread.NONE) {
|
||||
unreadClass = "unread-" + props.buffer.unread;
|
||||
classes.push("unread-" + props.buffer.unread);
|
||||
}
|
||||
|
||||
return html`
|
||||
<li class="${activeClass} ${unreadClass}">
|
||||
<li class="${classes.join(" ")}">
|
||||
<a href=${getBufferURL(props.buffer)} onClick=${handleClick}>${name}</a>
|
||||
</li>
|
||||
`;
|
||||
|
|
|
@ -72,6 +72,9 @@ body {
|
|||
#buffer-list li.unread-highlight a {
|
||||
color: #22009b;
|
||||
}
|
||||
#buffer-list li:not(.type-server) a {
|
||||
padding-left: 20px;
|
||||
}
|
||||
|
||||
#buffer-header, #member-list-header {
|
||||
color: var(--main-color);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue