Authored by 张文文

修改昵称过长问题

... ... @@ -65,6 +65,8 @@ class RankItem extends PureComponent {
}
}
let { width } = Dimensions.get('window');
const styles = StyleSheet.create({
itemContainer: {
height: 70 * DEVICE_WIDTH_RATIO,
... ... @@ -80,7 +82,7 @@ const styles = StyleSheet.create({
rank: {
fontSize: 18,
color: '#444444',
width: 23,
width: 23,
marginLeft: 18 * DEVICE_WIDTH_RATIO,
},
avatar: {
... ... @@ -93,8 +95,8 @@ const styles = StyleSheet.create({
name: {
fontFamily: 'PingFang-SC-Regular',
fontSize: 14,
marginLeft: 20,
marginLeft: 10 * DEVICE_WIDTH_RATIO,
maxWidth: width - 230 * DEVICE_WIDTH_RATIO,
},
rightContainer: {
flex: 1,
... ... @@ -105,7 +107,7 @@ const styles = StyleSheet.create({
amount: {
fontSize: 16,
color: '#444444',
fontWeight: 'bold',
fontWeight: 'bold',
},
amountName: {
fontFamily: 'PingFangSC-Regular',
... ...