1
0

Minor collapsing button improvements~

This commit is contained in:
kibigo! 2017-06-21 19:54:41 -07:00 committed by beatrix-bitrot
parent 93c52301ad
commit 4bd7482a7a
2 changed files with 2 additions and 2 deletions

View File

@ -70,7 +70,7 @@ export default class IconButton extends React.PureComponent {
}
return (
<Motion defaultStyle={{ rotate: this.props.active ? (this.props.flip ? -180 : -360) : 0 }} style={{ rotate: this.props.animate ? spring(this.props.active ? (this.props.flip ? -180 : -360) : 0, { stiffness: 120, damping: 7 }) : 0 }}>
<Motion defaultStyle={{ rotate: this.props.active ? (this.props.flip ? -180 : -360) : 0 }} style={{ rotate: this.props.animate ? spring(this.props.active ? (this.props.flip ? -180 : -360) : 0, { stiffness: this.props.flip ? 60 : 120, damping: 7 }) : 0 }}>
{({ rotate }) =>
<button
aria-label={this.props.title}

View File

@ -238,7 +238,7 @@ export default class Status extends ImmutablePureComponent {
animate flip
active={isCollapsed}
title={isCollapsed ? intl.formatMessage(messages.uncollapse) : intl.formatMessage(messages.collapse)}
icon='angle-double-down'
icon='angle-double-up'
onClick={this.handleCollapsedClick}
/>