mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2024-12-25 06:27:03 +01:00
Hide system scrollbar when custom scrollbars is activated
This commit is contained in:
parent
3575de6696
commit
c3a91ff29a
@ -56,6 +56,10 @@ body, #overall-main-content {
|
|||||||
overflow-y: hidden;
|
overflow-y: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
body.custom-scrollbars main {
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
main {
|
main {
|
||||||
overflow-y: scroll;
|
overflow-y: scroll;
|
||||||
min-height: calc(100vh - 80px);
|
min-height: calc(100vh - 80px);
|
||||||
|
@ -368,6 +368,7 @@
|
|||||||
autoHideScrollbar: !showScrollbar,
|
autoHideScrollbar: !showScrollbar,
|
||||||
theme: scrollbarTheme
|
theme: scrollbarTheme
|
||||||
});
|
});
|
||||||
|
$("body").addClass("custom-scrollbars");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (disabled) {
|
if (disabled) {
|
||||||
|
Loading…
Reference in New Issue
Block a user