left_sidebar: Calculate bottom scrolling buffer.

This commit is contained in:
Karl Stolley 2024-07-05 12:47:29 -05:00 committed by Tim Abbott
parent 41b431de70
commit 97d401a0a1
1 changed files with 5 additions and 1 deletions

View File

@ -85,7 +85,11 @@
--left-sidebar-header-icon-width: 15px;
/* Space between section in the left sidebar. */
--left-sidebar-sections-vertical-gutter: 8px;
--left-sidebar-bottom-scrolling-buffer: 25px;
/* The legacy value here is 25px; that's the unitless legacy line-height
of 20px, plus 5px at 14px/1em */
--left-sidebar-bottom-scrolling-buffer: calc(
(var(--legacy-body-line-height-unitless) * 1em) + 0.3571em
);
/* We base sidebar row heights on their line heights.
Prominent rows include things like headers (e.g., VIEWS)