Fix the scrollbar displayed when the browser freezes. Add scroll controller. #10

Merged
FatttSnake merged 3 commits from FatttSnake into dev 2023-09-08 18:22:27 +08:00
4 changed files with 6 additions and 6 deletions
Showing only changes of commit 2c09a914ca - Show all commits

View File

@@ -104,7 +104,7 @@ $font-secondary-color: #9E9E9E;
} }
} }
#loading-mask { .loading-mask {
position: absolute; position: absolute;
display: flex; display: flex;
justify-content: center; justify-content: center;
@@ -115,13 +115,13 @@ $font-secondary-color: #9E9E9E;
background-color: rgba(200, 200, 200, 0.2); background-color: rgba(200, 200, 200, 0.2);
} }
#fit-fullscreen { .fit-fullscreen {
position: relative; position: relative;
width: 100%; width: 100%;
height: 100vh; height: 100vh;
} }
#fit-center { .fit-center {
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;

View File

@@ -3,7 +3,7 @@ import React from 'react'
const FitCenter: React.FC<PropsWithChildren> = (props: PropsWithChildren) => { const FitCenter: React.FC<PropsWithChildren> = (props: PropsWithChildren) => {
return ( return (
<> <>
<div id={'fit-center'}>{props.children}</div> <div className={'fit-center'}>{props.children}</div>
</> </>
) )
} }

View File

@@ -4,7 +4,7 @@ const FitFullScreen: React.FC<FitFullscreenProps> = (props: FitFullscreenProps)
return ( return (
<> <>
<div <div
id={'fit-fullscreen'} className={'fit-fullscreen'}
style={{ style={{
zIndex: props.zIndex, zIndex: props.zIndex,
backgroundColor: props.backgroundColor backgroundColor: props.backgroundColor

View File

@@ -16,7 +16,7 @@ const LoadingMask: React.FC = () => {
return ( return (
<> <>
<FitFullScreen> <FitFullScreen>
<div id={'loading-mask'}> <div className={'loading-mask'}>
<AntdSpin indicator={loadingIcon} /> <AntdSpin indicator={loadingIcon} />
</div> </div>
</FitFullScreen> </FitFullScreen>