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