Added original padding without breaking the animation

This commit is contained in:
Yassien
2019-02-25 13:01:42 +02:00
parent d84fd5c801
commit 33c026c7e2
2 changed files with 7 additions and 2 deletions
@@ -13,7 +13,9 @@ const ExpandRow = ({ children, expanded, onClosed, ...rest }) => (
onExited={ onClosed }
>
<div>
{ children }
<div className="row-expansion-style">
{ children }
</div>
</div>
</CSSTransition>
</td>
@@ -158,7 +158,10 @@
}
}
.reset-expansion-style{
padding: 0 8px 0 8px;
padding: 0;
}
.row-expansion-style{
padding: 8px;
}
.row-expand-slide-appear{
max-height: 0;