summaryrefslogtreecommitdiff
path: root/client/src/lib/views
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2017-06-04 18:19:08 -0400
committerJules Laplace <julescarbon@gmail.com>2017-06-04 18:19:08 -0400
commit06e20cb460faa5c302511f6444c4017d5ebd07e0 (patch)
tree6b8aabe718445728b4afe22368b54f826e1a3985 /client/src/lib/views
parented91748ac4aa378bc43a1e9863dcae58ceb7f68e (diff)
more mobile hegemony
Diffstat (limited to 'client/src/lib/views')
-rw-r--r--client/src/lib/views/contact.js20
-rw-r--r--client/src/lib/views/livestream.js6
2 files changed, 14 insertions, 12 deletions
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 (
- <ScrollableContainer heading='Contact' style={styles.container} bodyStyle={styles.body}>
- <View style={styles.innerContainer}>
- <ClearText style={styles.bodyText}>
- {this.props.content.body}
- </ClearText>
+ <View>
+ <ScrollableContainer heading='Contact' style={styles.container} bodyStyle={styles.body}>
+ <View style={styles.innerContainer}>
+ <ClearText style={styles.bodyText}>
+ {this.props.content.body}
+ </ClearText>
- {this.renderForm()}
- {this.renderComments()}
- </View>
+ {this.renderForm()}
+ {this.renderComments()}
+ </View>
+ </ScrollableContainer>
<Modal visible={this.state.sending}>
{this.renderActivity()}
</Modal>
- </ScrollableContainer>
+ </View>
)
}
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