fix(empty-state): Limit scaling factor for animation

- Fix display: none in css
This commit is contained in:
Juan Tejada 2016-03-25 10:56:49 -07:00
parent a280d5fdbf
commit aaaf153993
2 changed files with 2 additions and 2 deletions

View file

@ -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()) =>

View file

@ -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%;
}