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.

left_sidebar: Correct margin on sticky headers.

Karl Stolley9481547a846a
diff --git a/web/styles/left_sidebar.css b/web/styles/left_sidebar.css
index 5eed9996943..f438d82924c 100644
--- a/web/styles/left_sidebar.css
+++ b/web/styles/left_sidebar.css
@@ -357,9 +357,13 @@
cursor: pointer;
background-color: var(--color-background);
position: sticky;
- /* Input is 31px tall at 16px/1em.
- Input container has 8px and 3px top/bottom padding = 11px total padding */
- top: calc(1.9375em + 11px);
+ /* Input is 54px tall at 16px/1em. That includes the
+ input container's top padding that's 2.5 times
+ the value of the left sidebar vertical gutter,
+ plus 3px of bottom padding. */
+ top: calc(
+ 1.9375em + (var(--left-sidebar-sections-vertical-gutter) * 2.5) + 3px
+ );
/* Must be more than .sidebar-topic-check and less than #stream-search-and-add */
z-index: 2;
color: var(--color-text-default);