diff options
author | kibigo! <marrus-sh@users.noreply.github.com> | 2017-06-21 19:54:41 -0700 |
---|---|---|
committer | beatrix-bitrot <beatrix.bitrot@gmail.com> | 2017-06-23 21:50:45 +0000 |
commit | 4bd7482a7a010f5f8bdcd53869f871bf93ed1fc0 (patch) | |
tree | 121b32e31a22da1e1899941a7595df6efcbceec2 | |
parent | 93c52301ade71fb685d937b90451974d03d710af (diff) |
Minor collapsing button improvements~
-rw-r--r-- | app/javascript/mastodon/components/icon_button.js | 2 | ||||
-rw-r--r-- | app/javascript/mastodon/components/status.js | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/app/javascript/mastodon/components/icon_button.js b/app/javascript/mastodon/components/icon_button.js index f4cedb854..748283853 100644 --- a/app/javascript/mastodon/components/icon_button.js +++ b/app/javascript/mastodon/components/icon_button.js @@ -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} diff --git a/app/javascript/mastodon/components/status.js b/app/javascript/mastodon/components/status.js index c78144715..e02169c57 100644 --- a/app/javascript/mastodon/components/status.js +++ b/app/javascript/mastodon/components/status.js @@ -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} /> |