Fixes #20435: Fix navigation margin issue when scrollbar appears (#21403)

Override Tabler's problematic margin-left: calc(100vw - 100%) rule that
causes a gap between the sidebar and main content when vertical scrollbar
is present on Windows/Linux browsers.

Uses scrollbar-gutter: stable to match the upstream fix in Tabler PR #2548.
This commit is contained in:
Jason Novinger
2026-02-12 04:30:33 -06:00
committed by GitHub
parent 5bf516c63d
commit 6c383f293c
2 changed files with 11 additions and 1 deletions
File diff suppressed because one or more lines are too long
@@ -5,6 +5,16 @@
font-variant-ligatures: none;
}
// TODO: Remove when Tabler releases fix for https://github.com/tabler/tabler/issues/2271
// and NetBox upgrades to that version. Fix merged to Tabler dev branch in PR #2548.
:root,
:host {
@include media-breakpoint-up(lg) {
margin-left: 0;
scrollbar-gutter: stable;
}
}
// Restore default foreground & background colors for <pre> blocks
pre {
background-color: transparent;