kopia lustrzana https://github.com/shoelace-style/shoelace
prettier
rodzic
073d36bd88
commit
9e66fc8f2d
|
@ -12,13 +12,13 @@ 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/, ""))
|
||||
const padding = Number(getComputedStyle(document.body).paddingRight.replace(/px/, ''));
|
||||
|
||||
if (isNaN(padding) || !padding) {
|
||||
return 0
|
||||
return 0;
|
||||
}
|
||||
|
||||
return padding
|
||||
return padding;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
* to reduce the possibility of collisions.
|
||||
*/
|
||||
|
||||
|
||||
@supports (scrollbar-gutter: stable) {
|
||||
.sl-scroll-lock {
|
||||
scrollbar-gutter: stable !important;
|
||||
|
|
Ładowanie…
Reference in New Issue