v1.0-230926 #27

Merged
FatttSnake merged 81 commits from dev into master 2023-09-26 11:06:08 +08:00
2 changed files with 15 additions and 18 deletions
Showing only changes of commit e225194c14 - Show all commits

View File

@@ -1,15 +1,10 @@
body {
.hide-scrollbar-mask {
width: 100%;
height: 100%;
overflow: hidden;
}
#root {
height: 100vh;
width: 100vw;
}
#hide-scrollbar {
.hide-scrollbar-selection {
position: relative;
height: 100vh;
width: 100vw;
overflow: scroll;
}

View File

@@ -151,15 +151,17 @@ const HideScrollbar = forwardRef<HideScrollbarElement, PropsWithChildren>((props
return (
<>
<div
ref={rootRef}
id={'hide-scrollbar'}
style={{
width: `calc(100vw + ${verticalScrollbarWidth}px)`,
height: `calc(100vh + ${horizontalScrollbarWidth}px`
}}
>
{props.children}
<div className={'hide-scrollbar-mask'}>
<div
ref={rootRef}
className={'hide-scrollbar-selection'}
style={{
width: `calc(100vw + ${verticalScrollbarWidth}px)`,
height: `calc(100vh + ${horizontalScrollbarWidth}px`
}}
>
{props.children}
</div>
</div>
</>
)