Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
left_sidebar: Use grid or flexbox to order selected home view.
Karl Stolley9226e8bdca02
diff --git a/web/styles/left_sidebar.css b/web/styles/left_sidebar.cssindex 66a7e5bcef4..686ef38e6c5 100644--- a/web/styles/left_sidebar.css+++ b/web/styles/left_sidebar.css@@ -585,6 +585,11 @@ li.active-sub-filter {#left-sidebar-navigation-list {margin-bottom: $sections_vertical_gutter;+ /* We display this as a grid only to control+ the order of home views, using a single+ named grid area. */+ display: grid;+ grid-template-areas: "selected-home-view";.left-sidebar-navigation-label-container {.left-sidebar-navigation-label {@@ -595,6 +600,19 @@ li.active-sub-filter {}}+.selected-home-view {+ /* This bumps the selected view to the+ top of the grid (expanded list).+ Others items will auto place in the+ remaining auto-generated grid rows. */+ grid-area: selected-home-view;+ /* The condensed view is a flexbox, so+ here we'll use a negative order to+ bump the selected home view to the+ start of the flexbox (lefthand side). */+ order: -1;+}+.top_left_starred_messages .unread_count,.top_left_drafts .unread_count,.top_left_scheduled_messages .unread_count,