mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-09 18:44:16 +00:00
improve header display behavior
This commit is contained in:
parent
19fa3dc683
commit
f1a7849cc7
@ -22,6 +22,14 @@ export default (props) => {
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
React.useEffect(() => {
|
||||||
|
if (render) {
|
||||||
|
app.layout.toggleDisableTopLayoutPadding(true)
|
||||||
|
} else {
|
||||||
|
app.layout.toggleDisableTopLayoutPadding(false)
|
||||||
|
}
|
||||||
|
}, [render])
|
||||||
|
|
||||||
return <Motion
|
return <Motion
|
||||||
style={{
|
style={{
|
||||||
y: spring(render ? 0 : 100,),
|
y: spring(render ? 0 : 100,),
|
||||||
|
@ -31,6 +31,8 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
&.hidden {
|
&.hidden {
|
||||||
|
display: none;
|
||||||
|
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
height: 0;
|
height: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user