Browse Source

Merge pull request #11610 from abpframework/liangshiwei/docs

Docs: Fix Filter problem on mobile devices
pull/11611/head
liangshiwei 5 years ago
committed by GitHub
parent
commit
4a000bcf77
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  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