Skip to content

Commit 2348f28

Browse files
authored
Bugfix: browser navbar title (#553)
1 parent 942cb6c commit 2348f28

File tree

1 file changed

+6
-3
lines changed
  • app/components/UI/NavbarBrowserTitle

1 file changed

+6
-3
lines changed

app/components/UI/NavbarBrowserTitle/index.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React, { Component } from 'react';
22
import PropTypes from 'prop-types';
33
import { connect } from 'react-redux';
4-
import { TouchableOpacity, View, StyleSheet, Text } from 'react-native';
4+
import { Platform, TouchableOpacity, View, StyleSheet, Text } from 'react-native';
55
import { colors, fontStyles } from '../../../styles/common';
66
import Networks from '../../../util/networks';
77
import Icon from 'react-native-vector-icons/FontAwesome';
@@ -42,7 +42,8 @@ const styles = StyleSheet.create({
4242
currentUrl: {
4343
...fontStyles.normal,
4444
fontSize: 14,
45-
textAlign: 'center'
45+
textAlign: 'center',
46+
paddingHorizontal: Platform.OS === 'android' ? 30 : 0
4647
}
4748
});
4849

@@ -82,7 +83,9 @@ class NavbarBrowserTitle extends Component {
8283
<TouchableOpacity onPress={this.openNetworkList} style={styles.wrapper}>
8384
<View style={styles.currentUrlWrapper}>
8485
{https ? <Icon name="lock" size={14} style={styles.lockIcon} /> : null}
85-
<Text style={styles.currentUrl}>{hostname}</Text>
86+
<Text numberOfLines={1} style={styles.currentUrl}>
87+
{hostname}
88+
</Text>
8689
</View>
8790
<View style={styles.network}>
8891
<View style={[styles.networkIcon, color ? { backgroundColor: color } : styles.otherNetworkIcon]} />

0 commit comments

Comments
 (0)