Skip to content

Commit

Permalink
Bugfix: browser navbar title (#553)
Browse files Browse the repository at this point in the history
  • Loading branch information
estebanmino authored Mar 22, 2019
1 parent 942cb6c commit 2348f28
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions app/components/UI/NavbarBrowserTitle/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { TouchableOpacity, View, StyleSheet, Text } from 'react-native';
import { Platform, TouchableOpacity, View, StyleSheet, Text } from 'react-native';
import { colors, fontStyles } from '../../../styles/common';
import Networks from '../../../util/networks';
import Icon from 'react-native-vector-icons/FontAwesome';
Expand Down Expand Up @@ -42,7 +42,8 @@ const styles = StyleSheet.create({
currentUrl: {
...fontStyles.normal,
fontSize: 14,
textAlign: 'center'
textAlign: 'center',
paddingHorizontal: Platform.OS === 'android' ? 30 : 0
}
});

Expand Down Expand Up @@ -82,7 +83,9 @@ class NavbarBrowserTitle extends Component {
<TouchableOpacity onPress={this.openNetworkList} style={styles.wrapper}>
<View style={styles.currentUrlWrapper}>
{https ? <Icon name="lock" size={14} style={styles.lockIcon} /> : null}
<Text style={styles.currentUrl}>{hostname}</Text>
<Text numberOfLines={1} style={styles.currentUrl}>
{hostname}
</Text>
</View>
<View style={styles.network}>
<View style={[styles.networkIcon, color ? { backgroundColor: color } : styles.otherNetworkIcon]} />
Expand Down

0 comments on commit 2348f28

Please sign in to comment.