mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-09-21 15:56:10 +08:00
fix(empty-state): Limit scaling factor for animation
- Fix display: none in css
This commit is contained in:
parent
a280d5fdbf
commit
aaaf153993
|
@ -48,6 +48,7 @@ class EmptyInboxState extends React.Component
|
|||
_getScalingFactor: =>
|
||||
{width} = @props.containerRect
|
||||
return null unless width
|
||||
return null if width > 600
|
||||
return (width + 100) / 1000
|
||||
|
||||
_getAnimationName: (now = new Date()) =>
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
|
||||
.empty-state {
|
||||
position:absolute;
|
||||
display: none;
|
||||
left: 0;
|
||||
top: 0;
|
||||
right: 0;
|
||||
|
@ -15,7 +14,7 @@
|
|||
> div {
|
||||
opacity: 0;
|
||||
transition: opacity @duration ease-in;
|
||||
width:100%;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue