Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

navbar: Add comment in scss explaining the nth-last-child(2).

YashRE4287c9d527ef0d
diff --git a/static/styles/zulip.scss b/static/styles/zulip.scss
index 46e595729f0..4be6aebda8d 100644
--- a/static/styles/zulip.scss
+++ b/static/styles/zulip.scss
@@ -1612,6 +1612,10 @@ div.focused_table {
text-overflow: ellipsis;
}
+ // The very last element in the navbar is the search icon, the second
+ // last element is either the narrow description (for stream narrows) or
+ // the "title" (for other narrows). The flex-grow property ensures these
+ // elements take up the entirety of the white space.
> :nth-last-child(2) {
flex-grow: 1;
}