[FIX] Server autocomplete text breaking line (#2774)

This commit is contained in:
Gerzon Z 2021-01-12 18:02:34 -04:00 committed by GitHub
parent 5d2050b8af
commit 59fd703f52
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -34,8 +34,8 @@ const Item = ({
}) => ( }) => (
<Touch style={styles.container} onPress={() => onPress(item.url)} theme={theme} testID={`server-history-${ item.url }`}> <Touch style={styles.container} onPress={() => onPress(item.url)} theme={theme} testID={`server-history-${ item.url }`}>
<View style={styles.content}> <View style={styles.content}>
<Text style={[styles.server, { color: themes[theme].bodyText }]}>{item.url}</Text> <Text numberOfLines={1} style={[styles.server, { color: themes[theme].bodyText }]}>{item.url}</Text>
<Text style={[styles.username, { color: themes[theme].auxiliaryText }]}>{item.username}</Text> <Text numberOfLines={1} style={[styles.username, { color: themes[theme].auxiliaryText }]}>{item.username}</Text>
</View> </View>
<BorderlessButton onPress={() => onDelete(item)} testID={`server-history-delete-${ item.url }`}> <BorderlessButton onPress={() => onDelete(item)} testID={`server-history-delete-${ item.url }`}>
<CustomIcon name='delete' size={24} color={themes[theme].auxiliaryText} /> <CustomIcon name='delete' size={24} color={themes[theme].auxiliaryText} />