Authored by 盖剑秋

优化详情页UI. reviewed by redding.

... ... @@ -51,7 +51,6 @@ const styles = StyleSheet.create({
container: {
flexDirection: 'column',
paddingTop: 10,
paddingBottom: 10,
backgroundColor: 'white',
marginLeft: 15,
marginRight: 15,
... ...
... ... @@ -26,7 +26,7 @@ export default class SubjectContent extends Component {
if (item.templateKey === 'text') {
if (this.props.replyTo&&this.props.replyTo.nickName&&this.props.replyTo.nickName.length&&this.props.replyTo.uid) {
return(
<Text key={i} style={styles.contentText}>
<Text key={i} style={[styles.contentText,{lineHeight:this.props.left>0?20:29}]}>//如果是在回复里显示,行高就是字号+6
<Text>回复</Text>
<Text style={{color:'#4a90e2'}} onPress={()=>{this.props.onPressAvatar(this.props.replyTo.uid);}}>{this.props.replyTo.nickName}</Text>
<Text>:{content}</Text>
... ... @@ -34,7 +34,7 @@ export default class SubjectContent extends Component {
)
}else {
return(
<Text key={i} style={styles.contentText}>{content}</Text>
<Text key={i} style={[styles.contentText,{lineHeight:this.props.left>0?20:29}]}>{content}</Text>
)
}
... ... @@ -76,12 +76,15 @@ export default class SubjectContent extends Component {
const styles = StyleSheet.create({
container: {
padding: 15,
paddingLeft: 15,
paddingRight: 15,
paddingBottom: 15,
backgroundColor: 'white',
},
contentText: {
fontSize: 14,
lineHeight: 24,
lineHeight: 29,
backgroundColor: 'white',
},
contentImage: {
backgroundColor:'#a0a0a0',
... ...
... ... @@ -548,7 +548,7 @@ const styles = StyleSheet.create({
title: {
backgroundColor: 'white',
fontSize: 17,
lineHeight: 24,
lineHeight: 32,
paddingLeft: 15,
paddingRight: 15,
},
... ...