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>
|
</TouchableOpacity>
|
||||||
</View>
|
</View>
|
||||||
<View style={{ ...styles.details, width: state.detailWidth }}>
|
<View style={{ ...styles.details, width: state.detailWidth }}>
|
||||||
|
<View style={styles.name}>
|
||||||
{ state.name && (
|
{ state.name && (
|
||||||
<Text style={styles.nameSet} numberOfLines={1} adjustsFontSizeToFit={true}>{ state.name }</Text>
|
<Text style={styles.nameSet} numberOfLines={1} adjustsFontSizeToFit={true}>{ state.name }</Text>
|
||||||
)}
|
)}
|
||||||
{ !state.name && (
|
{ !state.name && (
|
||||||
<Text style={styles.nameUnset}>{ state.strings.name }</Text>
|
<Text style={styles.nameUnset}>{ state.strings.name }</Text>
|
||||||
)}
|
)}
|
||||||
|
</View>
|
||||||
<View style={styles.usernameStatus}>
|
<View style={styles.usernameStatus}>
|
||||||
<Text style={styles.username} numberOfLines={1} adjustsFontSizeToFit={true}>{ state.username }</Text>
|
<Text style={styles.username} numberOfLines={1} adjustsFontSizeToFit={true}>{ state.username }</Text>
|
||||||
<View style={styles.status}>
|
<View style={styles.status}>
|
||||||
|
@ -188,10 +188,15 @@ export const styles = StyleSheet.create({
|
|||||||
paddingLeft: 16,
|
paddingLeft: 16,
|
||||||
paddingRight: 16,
|
paddingRight: 16,
|
||||||
},
|
},
|
||||||
|
name: {
|
||||||
|
display: 'flex',
|
||||||
|
flexShrink: 0,
|
||||||
|
},
|
||||||
usernameStatus: {
|
usernameStatus: {
|
||||||
display: 'flex',
|
display: 'flex',
|
||||||
flexDirection: 'row',
|
flexDirection: 'row',
|
||||||
marginTop: 4,
|
marginTop: 4,
|
||||||
|
flexShrink: 0,
|
||||||
},
|
},
|
||||||
status: {
|
status: {
|
||||||
display: 'flex',
|
display: 'flex',
|
||||||
|
Loading…
Reference in New Issue
Block a user