doc: fix scrolling glitch causing search bar to be partially hidden

With the recent update to Sphinx RTD theme 3.0.0, a 19px-high element
that used to display the version number is not visible anymore, so the
JS code that hides the upper-left logo when scrolling down needs to be
adjusted to account for this change.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
This commit is contained in:
Benjamin Cabé 2024-11-01 16:35:05 +01:00 committed by Mahesh Mahadevan
parent 580707ed4d
commit 2995eb79f1
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ const registerOnScrollEvent = (function(){
// Configuration.
// The number of pixels the user must scroll by before the logo is completely hidden.
const scrollTopPixels = 156;
const scrollTopPixels = 137;
// The target margin to be applied to the navigation bar when the logo is hidden.
const menuTopMargin = 54;
// The max-height offset when the logo is completely visible.