mirror of
https://github.com/balzack/databag.git
synced 2025-02-12 03:29:16 +00:00
fixing cropped name
This commit is contained in:
parent
15bd17dd5f
commit
78665a87bb
@ -242,12 +242,14 @@ export function Contact({ contact, drawer, back }) {
|
||||
</TouchableOpacity>
|
||||
</View>
|
||||
<View style={{ ...styles.details, width: state.detailWidth }}>
|
||||
{ state.name && (
|
||||
<Text style={styles.nameSet} numberOfLines={1} adjustsFontSizeToFit={true}>{ state.name }</Text>
|
||||
)}
|
||||
{ !state.name && (
|
||||
<Text style={styles.nameUnset}>{ state.strings.name }</Text>
|
||||
)}
|
||||
<View style={styles.name}>
|
||||
{ state.name && (
|
||||
<Text style={styles.nameSet} numberOfLines={1} adjustsFontSizeToFit={true}>{ state.name }</Text>
|
||||
)}
|
||||
{ !state.name && (
|
||||
<Text style={styles.nameUnset}>{ state.strings.name }</Text>
|
||||
)}
|
||||
</View>
|
||||
<View style={styles.usernameStatus}>
|
||||
<Text style={styles.username} numberOfLines={1} adjustsFontSizeToFit={true}>{ state.username }</Text>
|
||||
<View style={styles.status}>
|
||||
|
@ -188,10 +188,15 @@ export const styles = StyleSheet.create({
|
||||
paddingLeft: 16,
|
||||
paddingRight: 16,
|
||||
},
|
||||
name: {
|
||||
display: 'flex',
|
||||
flexShrink: 0,
|
||||
},
|
||||
usernameStatus: {
|
||||
display: 'flex',
|
||||
flexDirection: 'row',
|
||||
marginTop: 4,
|
||||
flexShrink: 0,
|
||||
},
|
||||
status: {
|
||||
display: 'flex',
|
||||
|
Loading…
Reference in New Issue
Block a user