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:
parent
580707ed4d
commit
2995eb79f1
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue