Skip to content

Commit 0126b61

Browse files
chore: hide the scroll bars in all browsers
Scrollbars have a height, and that height might alter calculations, thus I've removed them, and might add another back later outside of the body.
1 parent 4c5f7e8 commit 0126b61

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

lib/core/browser/css.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,18 @@ const nothingSelectable = /*CSS*/ `
101101
}
102102
`;
103103

104+
// eslint-disable-next-line no-inline-comments
105+
const noScrollBars = /*CSS*/ `
106+
* {
107+
scrollbar-width: none;
108+
-ms-overflow-style: none;
109+
}
110+
111+
*::-webkit-scrollbar {
112+
display: none;
113+
}
114+
`;
115+
104116
// eslint-disable-next-line no-inline-comments
105117
const doNotDisplayListCss = /*CSS*/ `
106118
head, style, script {
@@ -208,6 +220,7 @@ export const baseCSS = function baseCSS(args: SlydeHtmlDocumentCssProperties): s
208220
return /*CSS*/ `
209221
${htmlConfig}
210222
${nothingSelectable}
223+
${noScrollBars}
211224
${doNotDisplayListCss}
212225
${latexLibStyling}
213226
${setVarsBodyCss(args)}

0 commit comments

Comments
 (0)