Browse Source

Docs: Fix Filter problem on mobile devices

pull/11610/head
liangshiwei 5 years ago
parent
commit
104c4c7e82
  1. 19
      modules/docs/src/Volo.Docs.Web/Pages/Documents/Shared/Scripts/vs.js

19
modules/docs/src/Volo.Docs.Web/Pages/Documents/Shared/Scripts/vs.js

@ -124,18 +124,15 @@
}); });
function handleCustomScrolls() { function handleCustomScrolls() {
var wWidth = $(window).width(); $('#sidebar-scroll').mCustomScrollbar({
if (wWidth > 766) { theme: 'minimal',
$('#sidebar-scroll').mCustomScrollbar({ alwaysShowScrollbar: 0,
theme: 'minimal', });
alwaysShowScrollbar: 0,
});
$('#scroll-index').mCustomScrollbar({ $('#scroll-index').mCustomScrollbar({
theme: 'minimal-dark', theme: 'minimal-dark',
alwaysShowScrollbar: 0, alwaysShowScrollbar: 0,
}); });
}
} }
window.Toc.helpers.createNavList = function () { window.Toc.helpers.createNavList = function () {

Loading…
Cancel
Save