From 93c52301ade71fb685d937b90451974d03d710af Mon Sep 17 00:00:00 2001 From: kibigo! Date: Wed, 21 Jun 2017 19:05:24 -0700 Subject: [PATCH] =?UTF-8?q?Collapsable=20toots=20[1/=3F=3F]=20=E2=98=95?= =?UTF-8?q?=EF=B8=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mastodon/components/icon_button.js | 3 +- app/javascript/mastodon/components/status.js | 47 +++++++++++++++---- .../mastodon/components/status_action_bar.js | 3 ++ .../mastodon/locales/defaultMessages.json | 10 +++- app/javascript/mastodon/locales/en.json | 2 + app/javascript/styles/components.scss | 18 ++++++- 6 files changed, 71 insertions(+), 12 deletions(-) diff --git a/app/javascript/mastodon/components/icon_button.js b/app/javascript/mastodon/components/icon_button.js index ac734f5ad..f4cedb854 100644 --- a/app/javascript/mastodon/components/icon_button.js +++ b/app/javascript/mastodon/components/icon_button.js @@ -17,6 +17,7 @@ export default class IconButton extends React.PureComponent { disabled: PropTypes.bool, inverted: PropTypes.bool, animate: PropTypes.bool, + flip: PropTypes.bool, overlay: PropTypes.bool, }; @@ -69,7 +70,7 @@ export default class IconButton extends React.PureComponent { } return ( - + {({ rotate }) =>