Skip to content

Commit

Permalink
fix: scrollbar was not hidden on firefox
Browse files Browse the repository at this point in the history
  • Loading branch information
VampireChicken12 committed Nov 13, 2023
1 parent 40193ce commit 20bf270
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/features/hideScrollBar/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ export function hideScrollBar() {
width: 0px;
height: 0px;
}
html {
scrollbar-width: none;
}
`;
style.id = "yte-hide-scroll-bar";
document.head.appendChild(style);
Expand Down

0 comments on commit 20bf270

Please sign in to comment.