Fix UI issues. reivewed by redding.
:
Showing
6 changed files
with
8 additions
and
7 deletions
@@ -78,7 +78,9 @@ export default class Posting extends Component { | @@ -78,7 +78,9 @@ export default class Posting extends Component { | ||
78 | // 收起输入区时,content text input的高度要减去当前键盘高度 | 78 | // 收起输入区时,content text input的高度要减去当前键盘高度 |
79 | contentInputHeightWhileFocusing = contentInputHeight - kbdHeight; | 79 | contentInputHeightWhileFocusing = contentInputHeight - kbdHeight; |
80 | } | 80 | } |
81 | - | 81 | + if (kbdHeight>0) { |
82 | + this.setState({showImagePicker: false}); | ||
83 | + } | ||
82 | this.animatedContentInputToHeight(contentInputHeightWhileFocusing, event.duration); | 84 | this.animatedContentInputToHeight(contentInputHeightWhileFocusing, event.duration); |
83 | }); | 85 | }); |
84 | 86 |
@@ -122,7 +122,7 @@ const styles = StyleSheet.create({ | @@ -122,7 +122,7 @@ const styles = StyleSheet.create({ | ||
122 | paddingTop: 3, | 122 | paddingTop: 3, |
123 | marginRight: 10, | 123 | marginRight: 10, |
124 | marginTop: 10, | 124 | marginTop: 10, |
125 | - backgroundColor: '#e0e0e0', | 125 | + backgroundColor: '#f2f2f2', |
126 | }, | 126 | }, |
127 | imageCountText: { | 127 | imageCountText: { |
128 | alignItems: 'center', | 128 | alignItems: 'center', |
@@ -41,7 +41,7 @@ export default class SectionSelector extends Component { | @@ -41,7 +41,7 @@ export default class SectionSelector extends Component { | ||
41 | return ( | 41 | return ( |
42 | <View style={styles.container}> | 42 | <View style={styles.container}> |
43 | {sections.map((item, i) => { | 43 | {sections.map((item, i) => { |
44 | - let backgroundColor = item.forumName === this.props.selectedSectionName ? '#cccccc' : 'white'; | 44 | + let backgroundColor = item.forumName === this.props.selectedSectionName ? '#f2f2f2' : 'white'; |
45 | return ( | 45 | return ( |
46 | <Text | 46 | <Text |
47 | key={i} | 47 | key={i} |
@@ -77,7 +77,7 @@ const styles = StyleSheet.create({ | @@ -77,7 +77,7 @@ const styles = StyleSheet.create({ | ||
77 | paddingTop: 3, | 77 | paddingTop: 3, |
78 | // minWidth: Math.ceil((width - 45) / 3), | 78 | // minWidth: Math.ceil((width - 45) / 3), |
79 | width:((width - 45) / 3), | 79 | width:((width - 45) / 3), |
80 | - borderColor: '#a0a0a0', | 80 | + borderColor: '#f2f2f2', |
81 | marginBottom: 10, | 81 | marginBottom: 10, |
82 | backgroundColor: '#f2f2f2', | 82 | backgroundColor: '#f2f2f2', |
83 | borderWidth: 0.5, | 83 | borderWidth: 0.5, |
@@ -50,7 +50,7 @@ export default class SPHeaderCell extends Component { | @@ -50,7 +50,7 @@ export default class SPHeaderCell extends Component { | ||
50 | const styles = StyleSheet.create({ | 50 | const styles = StyleSheet.create({ |
51 | container: { | 51 | container: { |
52 | flexDirection: 'column', | 52 | flexDirection: 'column', |
53 | - paddingTop: 10, | 53 | + paddingTop: 15, |
54 | backgroundColor: 'white', | 54 | backgroundColor: 'white', |
55 | marginLeft: 15, | 55 | marginLeft: 15, |
56 | marginRight: 15, | 56 | marginRight: 15, |
@@ -85,7 +85,7 @@ let lineWidth = width - 30; | @@ -85,7 +85,7 @@ let lineWidth = width - 30; | ||
85 | let styles = StyleSheet.create({ | 85 | let styles = StyleSheet.create({ |
86 | container: { | 86 | container: { |
87 | backgroundColor: 'white', | 87 | backgroundColor: 'white', |
88 | - height: 50, | 88 | + height: 51, |
89 | flexDirection: 'row', | 89 | flexDirection: 'row', |
90 | justifyContent: 'space-between', | 90 | justifyContent: 'space-between', |
91 | flex: 1, | 91 | flex: 1, |
-
Please register or login to post a comment