From 06e20cb460faa5c302511f6444c4017d5ebd07e0 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Sun, 4 Jun 2017 18:19:08 -0400 Subject: more mobile hegemony --- client/src/lib/views/contact.js | 20 +++++++++++--------- client/src/lib/views/livestream.js | 6 +++--- 2 files changed, 14 insertions(+), 12 deletions(-) (limited to 'client/src/lib/views') diff --git a/client/src/lib/views/contact.js b/client/src/lib/views/contact.js index 19bec89..57d3e9d 100644 --- a/client/src/lib/views/contact.js +++ b/client/src/lib/views/contact.js @@ -95,20 +95,22 @@ export default class Contact extends Component { } render() { return ( - - - - {this.props.content.body} - + + + + + {this.props.content.body} + - {this.renderForm()} - {this.renderComments()} - + {this.renderForm()} + {this.renderComments()} + + {this.renderActivity()} - + ) } renderForm() { diff --git a/client/src/lib/views/livestream.js b/client/src/lib/views/livestream.js index 88c66cf..5df52aa 100644 --- a/client/src/lib/views/livestream.js +++ b/client/src/lib/views/livestream.js @@ -13,7 +13,7 @@ export default class Livestream extends Component { constructor(props) { super() this.state = { - ytid: getYTID(choice(props.content.streams).uri), + ytid: isMobile ? "" : getYTID(choice(props.content.streams).uri), isReady: false, currentTime: 0, duration: 0, @@ -105,13 +105,13 @@ const styles = StyleSheet.create({ }, videoContainer: { justifyContent: 'flex-start', - height: isMobile ? 100 : 400, + height: isMobile ? 0 : 400, width: '100%', padding: 10, }, video: { alignSelf: 'stretch', - height: isMobile ? 100 : 400, + height: isMobile ? 0 : 400, width: '100%', backgroundColor: 'black', marginVertical: 10 -- cgit v1.2.3-70-g09d2