FatttSnake #12
@@ -1,15 +1,10 @@
|
|||||||
body {
|
.hide-scrollbar-mask {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
#root {
|
.hide-scrollbar-selection {
|
||||||
height: 100vh;
|
|
||||||
width: 100vw;
|
|
||||||
}
|
|
||||||
|
|
||||||
#hide-scrollbar {
|
|
||||||
position: relative;
|
position: relative;
|
||||||
height: 100vh;
|
|
||||||
width: 100vw;
|
|
||||||
overflow: scroll;
|
overflow: scroll;
|
||||||
}
|
}
|
||||||
@@ -151,9 +151,10 @@ const HideScrollbar = forwardRef<HideScrollbarElement, PropsWithChildren>((props
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
|
<div className={'hide-scrollbar-mask'}>
|
||||||
<div
|
<div
|
||||||
ref={rootRef}
|
ref={rootRef}
|
||||||
id={'hide-scrollbar'}
|
className={'hide-scrollbar-selection'}
|
||||||
style={{
|
style={{
|
||||||
width: `calc(100vw + ${verticalScrollbarWidth}px)`,
|
width: `calc(100vw + ${verticalScrollbarWidth}px)`,
|
||||||
height: `calc(100vh + ${horizontalScrollbarWidth}px`
|
height: `calc(100vh + ${horizontalScrollbarWidth}px`
|
||||||
@@ -161,6 +162,7 @@ const HideScrollbar = forwardRef<HideScrollbarElement, PropsWithChildren>((props
|
|||||||
>
|
>
|
||||||
{props.children}
|
{props.children}
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
</>
|
</>
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user