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; overflow: hidden;
} }
#root { .hide-scrollbar-selection {
height: 100vh;
width: 100vw;
}
#hide-scrollbar {
position: relative; position: relative;
height: 100vh;
width: 100vw;
overflow: scroll; overflow: scroll;
} }

View File

@@ -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>
</> </>
) )
}) })