Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

search: styles for german translations (#404)

  • Loading branch information
chrmod authored and pavel-cliqz committed Jul 24, 2019
1 parent f4fc0de commit 96fdf855f0f8ab9b79c7d6dbae7d184007ae05d5
Showing with 19 additions and 4 deletions.
  1. +16 −4 js/lumen-onboarding.js
  2. +3 −0 lumen.js
@@ -16,10 +16,18 @@ const styles = StyleSheet.create({
tryNow: { tryNow: {
backgroundColor: '#3647D0', backgroundColor: '#3647D0',
borderRadius: 14, borderRadius: 14,
alignItems: 'center', display: 'flex',
justifyContent: 'center', justifyContent: 'center',
alignItems: 'center',
height: 36, height: 36,
marginTop: 20, marginTop: 20,
width: 'auto',
},
tryNowText: {
fontWeight: '700',
fontSize: 14,
lineHeight: 17,
color: 'white',
}, },
title: { title: {
letterSpacing: 0.25, letterSpacing: 0.25,
@@ -32,7 +40,11 @@ const styles = StyleSheet.create({
fontSize: 13, fontSize: 13,
lineHeight: 16, lineHeight: 16,
fontWeight: '500', fontWeight: '500',
} },
text: {
textAlign: "center",
width: '90%',
},
}); });


export default class Onboarding extends React.Component { export default class Onboarding extends React.Component {
@@ -57,7 +69,7 @@ export default class Onboarding extends React.Component {
}); });
this.interplateWidth = this.animatedValue.interpolate({ this.interplateWidth = this.animatedValue.interpolate({
inputRange: [0, 150], inputRange: [0, 150],
outputRange: [95, 36] outputRange: [140, 36]
}); });
} }


@@ -98,7 +110,7 @@ export default class Onboarding extends React.Component {
</Animated.Text> </Animated.Text>
<TouchableWithoutFeedback disabled={this.state.isClicked} onPress={() => this.onPress(true)}> <TouchableWithoutFeedback disabled={this.state.isClicked} onPress={() => this.onPress(true)}>
<Animated.View style={[styles.tryNow, animatedStyle]}> <Animated.View style={[styles.tryNow, animatedStyle]}>
<Text style={{ fontWeight: '700', fontSize: 14, lineHeight: 17, color: 'white' }}>{tryNowText}</Text> <Text style={styles.tryNowText}>{tryNowText}</Text>
</Animated.View> </Animated.View>
</TouchableWithoutFeedback> </TouchableWithoutFeedback>
<TouchableWithoutFeedback disabled={this.state.isClicked} onPress={() => this.onPress(false)}> <TouchableWithoutFeedback disabled={this.state.isClicked} onPress={() => this.onPress(false)}>
@@ -118,6 +118,9 @@ class MobileCards extends React.Component {
} }


componentWillUnmount() { componentWillUnmount() {
if (!this.eventEmitter) {
return;
}
events.un_sub('mobile-browser:notify-preferences', this.updatePreferences); events.un_sub('mobile-browser:notify-preferences', this.updatePreferences);
events.un_sub('mobile-browser:set-search-engine', this.setSearchEngine); events.un_sub('mobile-browser:set-search-engine', this.setSearchEngine);
events.un_sub('search:results', this.updateResults); events.un_sub('search:results', this.updateResults);

0 comments on commit 96fdf85

Please sign in to comment.