Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
KonnorRogers committed Feb 26, 2024
1 parent 073d36b commit 9e66fc8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion docs/pages/resources/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -1729,4 +1729,4 @@ The following pages demonstrate why this change was necessary.

## 2.0.0-beta.1

- Initial release
- Initial release
12 changes: 6 additions & 6 deletions src/internal/scroll.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ function getScrollbarWidth() {
/**
* Used in conjunction with `scrollbarWidth` to set proper body padding in case the user has padding already on the `<body>` element.
*/
function getExistingBodyPadding () {
const padding = Number(getComputedStyle(document.body).paddingRight.replace(/px/, ""))
function getExistingBodyPadding() {
const padding = Number(getComputedStyle(document.body).paddingRight.replace(/px/, ''));

if (isNaN(padding) || !padding) {
return 0
}
if (isNaN(padding) || !padding) {
return 0;
}

return padding
return padding;
}

/**
Expand Down
1 change: 0 additions & 1 deletion src/themes/_utility.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
* to reduce the possibility of collisions.
*/


@supports (scrollbar-gutter: stable) {
.sl-scroll-lock {
scrollbar-gutter: stable !important;
Expand Down

0 comments on commit 9e66fc8

Please sign in to comment.