Skip to content

Commit 6f09c17

Browse files
committed
fix 样式问题
1 parent 1414a5d commit 6f09c17

File tree

5 files changed

+21
-6
lines changed

5 files changed

+21
-6
lines changed

app/components/DynamicPage.js

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,22 @@ class DynamicPage extends Component {
4343
getNewsVersion();
4444
});
4545
AppState.addEventListener('change', this._handleAppStateChange);
46+
47+
/*setTimeout(() => {
48+
if (__DEV__) {
49+
Actions.IssueDetail({
50+
issue: {
51+
user: {},
52+
comments: 0,
53+
state: "",
54+
number: 696
55+
}, title: "Test",
56+
repositoryName: "GSYVideoPlayer",
57+
userName: "CarGuo"
58+
})
59+
}
60+
}, 1000)*/
61+
4662
}
4763

4864
componentWillUnmount() {
@@ -72,7 +88,7 @@ class DynamicPage extends Component {
7288
actionUser={rowData.actor.display_login}
7389
actionUserPic={rowData.actor.avatar_url}
7490
des={res.des}
75-
onPressItem={()=>{
91+
onPressItem={() => {
7692
ActionUtils(rowData)
7793
}}
7894
actionTarget={res.actionStr}/>

app/components/common/CommonHtmlView.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ class CommonHtmlView extends Component {
6060
}}
6161
renderNode={
6262
(node, index, list, parent, domToElement) => {
63-
if (node.type === 'tag')
6463
if (node.type === 'tag') {
6564
if (node.name === 'img') {
6665
return (

app/components/widget/IssueHead.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ class IssueItem extends Component {
5050
marginRight: Constant.normalMarginEdge,
5151
paddingHorizontal: Constant.normalMarginEdge,
5252
paddingTop: Constant.normalMarginEdge,
53-
borderRadius: 4,
5453
}, styles.shadowCard, {backgroundColor: Constant.primaryColor}]}
5554
onPress={() => {
5655
this.props.onPressItem && this.props.onPressItem();

app/components/widget/IssueItem.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,11 @@ class IssueItem extends Component {
6161
marginTop: Constant.normalMarginEdge / 2,
6262
backgroundColor: Constant.transparentColor
6363
}]}
64-
numberOfLines={100}
64+
numberOfLines={9999}
6565
value={issueCommentHtml}
6666
textComponentProps={{
6767
style: styles.subSmallText,
68-
numberOfLines: 100,
68+
numberOfLines: 9999,
6969
}}
7070
selectable={true}
7171
stylesheet={{pre: styles.inCode, code: styles.pCode}}
@@ -85,7 +85,6 @@ class IssueItem extends Component {
8585
marginRight: Constant.normalMarginEdge,
8686
paddingHorizontal: Constant.normalMarginEdge,
8787
paddingTop: Constant.normalMarginEdge,
88-
borderRadius: 4,
8988
}, styles.shadowCard]}
9089
onPress={() => {
9190
this.props.onPressItem && this.props.onPressItem();

app/components/widget/RepositoryHeader.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,13 +125,15 @@ class RepositoryHeader extends Component {
125125
backgroundColor: Constant.primaryColor,
126126
marginTop: Constant.normalMarginEdge,
127127
marginHorizontal: Constant.normalMarginEdge,
128+
borderRadius: 4,
128129
}]}
129130
blurRadius={Platform.OS === 'ios' ? 14 : 5}
130131
source={{uri: (ownerPic) ? ownerPic : ""}}
131132
resizeMethod="scale">
132133
<View style={{
133134
backgroundColor: Constant.primaryColor, opacity: 0.5,
134135
padding: Constant.normalMarginEdge,
136+
borderRadius: 4,
135137
}}>
136138
<View style={[styles.flexDirectionRowNotFlex, {
137139
backgroundColor: Constant.transparentColor,

0 commit comments

Comments
 (0)