Hide collapse button if no channels
This commit is contained in:
parent
49f2721908
commit
894d6f162d
@ -717,6 +717,11 @@ kbd {
|
|||||||
transition: opacity 0.2s, background-color 0.2s, transform 0.2s;
|
transition: opacity 0.2s, background-color 0.2s, transform 0.2s;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
button.collapse-network:first-child:nth-last-child(3) {
|
||||||
|
/* Hide collapse button if there are no channels/queries */
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
#sidebar .network.collapsed .collapse-network {
|
#sidebar .network.collapsed .collapse-network {
|
||||||
transform: rotate(-90deg);
|
transform: rotate(-90deg);
|
||||||
}
|
}
|
||||||
|
@ -6,9 +6,10 @@
|
|||||||
data-nick="{{nick}}"
|
data-nick="{{nick}}"
|
||||||
data-options="{{tojson serverOptions}}"
|
data-options="{{tojson serverOptions}}"
|
||||||
>
|
>
|
||||||
<button class="collapse-network" aria-label="Collapse" data-id="{{id}}"
|
|
||||||
aria-controls="network-{{id}}-chanlist" aria-expanded="true"></button>
|
|
||||||
<div id="network-{{id}}-chanlist" role="region" class="chanlist">
|
<div id="network-{{id}}-chanlist" role="region" class="chanlist">
|
||||||
|
<button class="collapse-network" aria-label="Collapse" data-id="{{id}}"
|
||||||
|
aria-controls="network-{{id}}-chanlist" aria-expanded="true">
|
||||||
|
</button>
|
||||||
{{> chan}}
|
{{> chan}}
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
Loading…
Reference in New Issue
Block a user