Authored by 于良

消息中心热门消息样式调整 review by 草莓

@@ -105,6 +105,8 @@ export default class MsgCenterNormalCell extends React.Component { @@ -105,6 +105,8 @@ export default class MsgCenterNormalCell extends React.Component {
105 } 105 }
106 } 106 }
107 107
  108 +let {width, height} = Dimensions.get('window');
  109 +
108 let styles = StyleSheet.create({ 110 let styles = StyleSheet.create({
109 container: { 111 container: {
110 flex:1, 112 flex:1,
@@ -186,6 +188,8 @@ let styles = StyleSheet.create({ @@ -186,6 +188,8 @@ let styles = StyleSheet.create({
186 fontFamily: 'Helvetica Light', 188 fontFamily: 'Helvetica Light',
187 fontSize: 12, 189 fontSize: 12,
188 color: '#8b8b8b', 190 color: '#8b8b8b',
  191 + marginTop: 6,
  192 + width: width - 30 - 20,
189 }, 193 },
190 194
191 section: { 195 section: {
@@ -14,7 +14,7 @@ const { @@ -14,7 +14,7 @@ const {
14 Dimensions, 14 Dimensions,
15 } = ReactNative; 15 } = ReactNative;
16 16
17 -export default class ReplyCell extends React.Component { 17 +export default class SysMsgCell extends React.Component {
18 18
19 static propTypes = { 19 static propTypes = {
20 data: ImmutablePropTypes.contains({ 20 data: ImmutablePropTypes.contains({
@@ -77,6 +77,7 @@ export default class ReplyCell extends React.Component { @@ -77,6 +77,7 @@ export default class ReplyCell extends React.Component {
77 <Image 77 <Image
78 defaultSource={require('../../images/message/duihuakuang.png')} 78 defaultSource={require('../../images/message/duihuakuang.png')}
79 style={styles.bubble} 79 style={styles.bubble}
  80 + resizeMode={'stretch'}
80 > 81 >
81 <Text style={styles.reply} 82 <Text style={styles.reply}
82 numberOfLines={1} 83 numberOfLines={1}
@@ -106,6 +107,8 @@ export default class ReplyCell extends React.Component { @@ -106,6 +107,8 @@ export default class ReplyCell extends React.Component {
106 } 107 }
107 } 108 }
108 109
  110 +let {width, height} = Dimensions.get('window');
  111 +
109 let styles = StyleSheet.create({ 112 let styles = StyleSheet.create({
110 container: { 113 container: {
111 flexDirection:'column', 114 flexDirection:'column',
@@ -158,7 +161,6 @@ let styles = StyleSheet.create({ @@ -158,7 +161,6 @@ let styles = StyleSheet.create({
158 alignItems:'center', 161 alignItems:'center',
159 height: 40, 162 height: 40,
160 padding: 10, 163 padding: 10,
161 - resizeMode:'contain',  
162 }, 164 },
163 165
164 reply: { 166 reply: {
@@ -166,7 +168,8 @@ let styles = StyleSheet.create({ @@ -166,7 +168,8 @@ let styles = StyleSheet.create({
166 fontFamily: 'Helvetica Light', 168 fontFamily: 'Helvetica Light',
167 fontSize: 12, 169 fontSize: 12,
168 color: '#8b8b8b', 170 color: '#8b8b8b',
169 - marginTop: 8, 171 + marginTop: 6,
  172 + width: width - 30 - 20,
170 }, 173 },
171 174
172 section: { 175 section: {
@@ -179,7 +179,7 @@ export function onRightPressed(sid) { @@ -179,7 +179,7 @@ export function onRightPressed(sid) {
179 newSrc = item.defaultShareImage; 179 newSrc = item.defaultShareImage;
180 } 180 }
181 let title = item.postsTitle||contentStr||'潮流社区'; 181 let title = item.postsTitle||contentStr||'潮流社区';
182 - let content = (item.authorInfo.nickName||'')+'在潮流社区发布的潮流主题帖很赞,快来看看!' 182 + let content = (item.authorInfo.nickName||'')+'在潮流社区发布的潮流主题帖很赞,快来看看!';
183 let shareInfo = { 183 let shareInfo = {
184 title, 184 title,
185 content, 185 content,