fix: scope rail nav-label hiding to sidebar and fall back fab-only to sidebar on desktop
This commit is contained in:
+1
-1
@@ -69,7 +69,7 @@ const prePaintScript = `(function(){
|
||||
var navStyle = localStorage.getItem('themeNavStyle') || 'rail-desktop';
|
||||
var dataNav = navStyle === 'compact-rail' ? 'rail'
|
||||
: navStyle === 'top-nav' ? 'top'
|
||||
: navStyle === 'fab-only' ? 'fab' : 'sidebar';
|
||||
: 'sidebar';
|
||||
if (window.matchMedia && window.matchMedia('(max-width: 759px)').matches) {
|
||||
dataNav = navStyle === 'fab-only' ? 'fab' : 'bottom';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user