stream_list: Always show expanded muted/inactive channels.

This commit is contained in:
Evy Kassirer
2025-08-06 18:35:08 -07:00
committed by Tim Abbott
parent bb43cfe9c7
commit 4585d87cec

View File

@@ -423,7 +423,10 @@
}
.stream-list-section-container:not(.showing-inactive-or-muted) {
.inactive-or-muted-in-channel-folder {
.inactive-or-muted-in-channel-folder:not(
.active-filter,
:has(.active-sub-filter)
) {
display: none;
}
@@ -453,6 +456,24 @@
}
}
/* Sections with inactive/muted channels have a button to toggle
showing them. If there's only one inactive/muted channel, and
it's currently highlighted (.stream-expanded), then we want to
always show it, which means there aren't any inactive/muted
channels left to toggle visibility for. So we should hide the
toggle button.
(Checking for any .inactive-or-muted-in-channel-folder without
.stream-expanded in a .stream-list-section-container, and if none
then hide .stream-list-toggle-inactive-or-muted-channels). */
.stream-list-section-container:not(
:has(.inactive-or-muted-in-channel-folder:not(.stream-expanded))
) {
.stream-list-toggle-inactive-or-muted-channels {
display: none;
}
}
.show-inactive-or-muted-channels,
.hide-inactive-or-muted-channels {
display: grid;