From 62b384824d39fb56cb211670126b38645fdf10cc Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Sun, 25 Sep 2016 14:58:07 +0200 Subject: [PATCH] Improved styling for media/videos in detailed status view --- .../components/components/video_player.jsx | 13 +++++++++++-- .../features/account/components/action_bar.jsx | 8 ++++---- .../features/status/components/detailed_status.jsx | 11 +++++++++++ 3 files changed, 26 insertions(+), 6 deletions(-) diff --git a/app/assets/javascripts/components/components/video_player.jsx b/app/assets/javascripts/components/components/video_player.jsx index fa0675413d..9fab6d7c10 100644 --- a/app/assets/javascripts/components/components/video_player.jsx +++ b/app/assets/javascripts/components/components/video_player.jsx @@ -4,7 +4,16 @@ import IconButton from './icon_button'; const VideoPlayer = React.createClass({ propTypes: { - media: ImmutablePropTypes.map.isRequired + media: ImmutablePropTypes.map.isRequired, + width: React.PropTypes.number, + height: React.PropTypes.number + }, + + getDefaultProps () { + return { + width: 196, + height: 110 + }; }, getInitialState () { @@ -21,7 +30,7 @@ const VideoPlayer = React.createClass({ render () { return ( -
+
diff --git a/app/assets/javascripts/components/features/account/components/action_bar.jsx b/app/assets/javascripts/components/features/account/components/action_bar.jsx index 9fa9fff3d0..75b26775c1 100644 --- a/app/assets/javascripts/components/features/account/components/action_bar.jsx +++ b/app/assets/javascripts/components/features/account/components/action_bar.jsx @@ -16,11 +16,11 @@ const ActionBar = React.createClass({ render () { const { account, me } = this.props; - let followBack = ''; + let infoText = ''; let actionButton = ''; if (account.get('id') === me) { - actionButton = 'This is you!'; + infoText = 'This is you!'; } else { if (account.getIn(['relationship', 'following'])) { actionButton =