Authored by 张文文

昵称显示过长

... ... @@ -51,7 +51,7 @@ export default class ContentLikedListCell extends Component {
<View style={styles.textView}>
<TouchableOpacity activeOpacity={1} onPress={()=> this.props.jumpToPersonalGrassPage && this.props.jumpToPersonalGrassPage(rowData)}>
<Text style={styles.nicknameText}>{rowData.userName}</Text>
<Text style={[styles.nicknameText, {maxWidth: width-80}]} numberOfLines={1}>{rowData.userName}</Text>
</TouchableOpacity>
<Text style={styles.subnameText}>{subName}</Text>
</View>
... ...
... ... @@ -52,7 +52,7 @@ export default class ContentMessageCell extends Component {
<View style={styles.textView}>
<TouchableOpacity activeOpacity={1} onPress={()=> this.props.jumpToPersonalGrassPage && this.props.jumpToPersonalGrassPage(rowData)}>
<Text style={styles.nicknameText}>{rowData.userName}</Text>
<Text style={[styles.nicknameText, {maxWidth: width-150}]} numberOfLines={1}>{rowData.userName}</Text>
</TouchableOpacity>
<Text style={styles.subnameText}>{subName}</Text>
</View>
... ...