mirror of
https://github.com/shoelace-style/shoelace.git
synced 2026-01-12 02:59:13 +00:00
prettier
This commit is contained in:
@@ -1761,4 +1761,4 @@ The following pages demonstrate why this change was necessary.
|
||||
|
||||
## 2.0.0-beta.1
|
||||
|
||||
- Initial release
|
||||
- Initial release
|
||||
|
||||
@@ -44,7 +44,7 @@ export function lockBodyScrolling(lockingEl: HTMLElement) {
|
||||
/** Sometimes the scrollbar width is 1px, even then, we assume nothing is overflowing. */
|
||||
if (scrollbarWidth < 2) {
|
||||
// if there's no scrollbar, just set it to an empty string so whatever the user has set gets used. This is useful if the page is not overflowing and showing a scrollbar, or if the user has overflow: hidden, or any other reason a scrollbar may not be showing.
|
||||
scrollbarGutterProperty = ""
|
||||
scrollbarGutterProperty = '';
|
||||
}
|
||||
document.documentElement.style.setProperty('--sl-scroll-lock-gutter', scrollbarGutterProperty);
|
||||
document.documentElement.classList.add('sl-scroll-lock');
|
||||
|
||||
Reference in New Issue
Block a user