|
@@ -75,13 +75,13 @@ const PageLayout = () => {
|
|
|
height: '100vh',
|
|
height: '100vh',
|
|
|
display: 'flex',
|
|
display: 'flex',
|
|
|
flexDirection: 'column',
|
|
flexDirection: 'column',
|
|
|
- overflow: 'hidden'
|
|
|
|
|
|
|
+ overflow: styleState.isMobile ? 'visible' : 'hidden'
|
|
|
}}>
|
|
}}>
|
|
|
<Header style={{
|
|
<Header style={{
|
|
|
padding: 0,
|
|
padding: 0,
|
|
|
height: 'auto',
|
|
height: 'auto',
|
|
|
lineHeight: 'normal',
|
|
lineHeight: 'normal',
|
|
|
- position: 'fixed',
|
|
|
|
|
|
|
+ position: styleState.isMobile ? 'sticky' : 'fixed',
|
|
|
width: '100%',
|
|
width: '100%',
|
|
|
top: 0,
|
|
top: 0,
|
|
|
zIndex: 100,
|
|
zIndex: 100,
|
|
@@ -90,9 +90,9 @@ const PageLayout = () => {
|
|
|
<HeaderBar />
|
|
<HeaderBar />
|
|
|
</Header>
|
|
</Header>
|
|
|
<Layout style={{
|
|
<Layout style={{
|
|
|
- marginTop: '56px',
|
|
|
|
|
- height: 'calc(100vh - 56px)',
|
|
|
|
|
- overflow: 'auto',
|
|
|
|
|
|
|
+ marginTop: styleState.isMobile ? '0' : '56px',
|
|
|
|
|
+ height: styleState.isMobile ? 'auto' : 'calc(100vh - 56px)',
|
|
|
|
|
+ overflow: styleState.isMobile ? 'visible' : 'auto',
|
|
|
display: 'flex',
|
|
display: 'flex',
|
|
|
flexDirection: 'column'
|
|
flexDirection: 'column'
|
|
|
}}>
|
|
}}>
|
|
@@ -121,10 +121,11 @@ const PageLayout = () => {
|
|
|
<Content
|
|
<Content
|
|
|
style={{
|
|
style={{
|
|
|
flex: '1 0 auto',
|
|
flex: '1 0 auto',
|
|
|
- overflowY: 'auto',
|
|
|
|
|
|
|
+ overflowY: styleState.isMobile ? 'visible' : 'auto',
|
|
|
WebkitOverflowScrolling: 'touch',
|
|
WebkitOverflowScrolling: 'touch',
|
|
|
padding: styleState.shouldInnerPadding? '24px': '0',
|
|
padding: styleState.shouldInnerPadding? '24px': '0',
|
|
|
position: 'relative',
|
|
position: 'relative',
|
|
|
|
|
+ marginTop: styleState.isMobile ? '2px' : '0',
|
|
|
}}
|
|
}}
|
|
|
>
|
|
>
|
|
|
<App />
|
|
<App />
|