个人中心bug fix review by 盖剑秋
Showing
1 changed file
with
7 additions
and
2 deletions
@@ -64,12 +64,14 @@ export default class UserCenterTop extends React.Component { | @@ -64,12 +64,14 @@ export default class UserCenterTop extends React.Component { | ||
64 | </TouchableOpacity> | 64 | </TouchableOpacity> |
65 | <Text | 65 | <Text |
66 | style={styles.name} | 66 | style={styles.name} |
67 | + numberOfLines={1} | ||
67 | > | 68 | > |
68 | {nickName} | 69 | {nickName} |
69 | </Text> | 70 | </Text> |
70 | 71 | ||
71 | <Text | 72 | <Text |
72 | style={styles.sign} | 73 | style={styles.sign} |
74 | + numberOfLines={2} | ||
73 | > | 75 | > |
74 | {sign} | 76 | {sign} |
75 | </Text> | 77 | </Text> |
@@ -83,6 +85,8 @@ export default class UserCenterTop extends React.Component { | @@ -83,6 +85,8 @@ export default class UserCenterTop extends React.Component { | ||
83 | let {width, height} = Dimensions.get('window'); | 85 | let {width, height} = Dimensions.get('window'); |
84 | let navbarHeight = (Platform.OS === 'android') ? 50 : 64; | 86 | let navbarHeight = (Platform.OS === 'android') ? 50 : 64; |
85 | let containerHieght = Math.ceil((490 / 750) * width); | 87 | let containerHieght = Math.ceil((490 / 750) * width); |
88 | +containerHieght = containerHieght < 245 ? 245 : containerHieght; | ||
89 | + | ||
86 | let styles = StyleSheet.create({ | 90 | let styles = StyleSheet.create({ |
87 | container: { | 91 | container: { |
88 | height: containerHieght, | 92 | height: containerHieght, |
@@ -111,8 +115,8 @@ let styles = StyleSheet.create({ | @@ -111,8 +115,8 @@ let styles = StyleSheet.create({ | ||
111 | name: { | 115 | name: { |
112 | color: 'white', | 116 | color: 'white', |
113 | textAlign: 'center', | 117 | textAlign: 'center', |
114 | - margin: 15, | ||
115 | - marginBottom:10, | 118 | + marginTop: 20, |
119 | + marginBottom: 4, | ||
116 | fontSize: 14, | 120 | fontSize: 14, |
117 | fontFamily: 'Helvetica Light', | 121 | fontFamily: 'Helvetica Light', |
118 | }, | 122 | }, |
@@ -121,6 +125,7 @@ let styles = StyleSheet.create({ | @@ -121,6 +125,7 @@ let styles = StyleSheet.create({ | ||
121 | color: 'white', | 125 | color: 'white', |
122 | textAlign: 'center', | 126 | textAlign: 'center', |
123 | fontSize: 12, | 127 | fontSize: 12, |
128 | + lineHeight: 18, | ||
124 | fontFamily: 'Helvetica Light', | 129 | fontFamily: 'Helvetica Light', |
125 | }, | 130 | }, |
126 | 131 |
-
Please register or login to post a comment