mirror of https://github.com/zulip/zulip.git
left_sidebar: More carefully generate auto rows for expanded nav.
This commit is contained in:
parent
35642cb941
commit
9fb6b4d016
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue