left_sidebar: More carefully generate auto rows for expanded nav.

This commit is contained in:
Karl Stolley 2024-07-03 16:13:18 -05:00 committed by Tim Abbott
parent 35642cb941
commit 9fb6b4d016
1 changed files with 9 additions and 1 deletions

View File

@ -590,7 +590,8 @@ li.active-sub-filter {
/* Explicitly ensure parity with the line-height
for the sake of low-resolution screens, whose
font-rendering and rounding may cause icons
to appear out of alignment. */
to appear out of alignment. This grid feature should
only apply in the expanded-navigation view. */
grid-auto-rows: var(--line-height-sidebar-row);
.left-sidebar-navigation-label-container {
@ -791,6 +792,10 @@ li.top_left_scheduled_messages {
filter rows as needed, based on the narrow. */
&.showing-condensed-navigation {
+ #left-sidebar-navigation-list {
/* In the condensed state, we don't want to generate
auto rows, or there will be a footprint where the
expanded nav sits. */
grid-auto-rows: unset;
/* When the navigation area is condensed, hide all
the rows in the full navigation list... */
& .top_left_row {
@ -800,6 +805,9 @@ li.top_left_scheduled_messages {
that row should still be shown. */
& .top_left_row.active-filter {
display: grid;
/* In the absence of auto rows in the condensed state,
we set an explicit height on the active filter. */
height: var(--line-height-sidebar-row);
}
}
}