From 8528f19bebc2867a86b777c808bb87ee983936d6 Mon Sep 17 00:00:00 2001 From: RealOrangeOne Date: Fri, 11 Mar 2016 11:10:00 +0000 Subject: [PATCH] layout main details in row --- app/components/projects/ProjectItem.js | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/app/components/projects/ProjectItem.js b/app/components/projects/ProjectItem.js index 38afa16..96be259 100644 --- a/app/components/projects/ProjectItem.js +++ b/app/components/projects/ProjectItem.js @@ -46,6 +46,13 @@ const styles = StyleSheet.create({ fontSize: 12.5, fontWeight: '300', marginLeft: 3 + }, + detailsRow: { + flex: 1, + flexDirection: 'row' + }, + mainDetails: { + marginRight: 10 } }); @@ -76,7 +83,7 @@ export default class ProjectItem extends React.Component { return ( #{ mostRecentBuild.build_num } - { buildTime } + { buildTime } { commit.commit.substring(0, 6) } ); @@ -91,10 +98,10 @@ export default class ProjectItem extends React.Component { GlobalStyles.get('CIRCLE_TEST_FAIL') : GlobalStyles.get('CIRCLE_TEST_PASS'); const username = this.props.userDetails && this.props.userDetails.login !== project.username ? - ( {project.username}) : null; + ( {project.username}) : null; const language = project.language ? - ( {project.language}) : null; + ( {project.language}) : null; const buildDetails = mostRecentBuild ? this._displayMoreInfo(mostRecentBuild) : null; @@ -106,8 +113,10 @@ export default class ProjectItem extends React.Component { {project.reponame} - { username } - { language } + + { username } + { language } + { buildDetails }