Przeglądaj źródła

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.
Jason Novinger 1 tydzień temu
rodzic
commit
6c383f293c

Plik diff jest za duży
+ 0 - 0
netbox/project-static/dist/netbox.css


+ 10 - 0
netbox/project-static/styles/overrides/_tabler.scss

@@ -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;

Niektóre pliki nie zostały wyświetlone z powodu dużej ilości zmienionych plików