Skip to content

Commit

Permalink
style(issueeventlistitem, commentlistitem): Slightly shrink issue eve…
Browse files Browse the repository at this point in the history
…nt badges + change user click o (#516)
  • Loading branch information
Houssein Djirdeh authored Oct 19, 2017
1 parent 5ef3260 commit 16204d5
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 21 deletions.
29 changes: 14 additions & 15 deletions src/components/comment-list-item.component.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,23 +158,22 @@ class CommentListItemComponent extends Component {
)}

{comment.user && (
<TouchableOpacity
style={styles.titleSubtitleContainer}
onPress={() =>
navigation.navigate(
authUser.login === comment.user.login
? 'AuthProfile'
: 'Profile',
{
user: comment.user,
}
)}
>
<Text style={styles.linkDescription}>
<View style={styles.titleSubtitleContainer}>
<Text
style={styles.linkDescription}
onPress={() =>
navigation.navigate(
authUser.login === comment.user.login
? 'AuthProfile'
: 'Profile',
{
user: comment.user,
}
)}
>
{comment.user.login}
{' '}
</Text>
</TouchableOpacity>
</View>
)}

<View style={styles.dateContainer}>
Expand Down
10 changes: 4 additions & 6 deletions src/components/inline-label.component.js
Original file line number Diff line number Diff line change
@@ -1,20 +1,18 @@
import React, { Component } from 'react';
import { StyleSheet, Text } from 'react-native';

import { normalize } from 'config';
import { fonts, normalize } from 'config';
import { getFontColorByBackground } from 'utils';

const styles = StyleSheet.create({
inlineLabel: {
fontSize: normalize(10),
fontWeight: 'bold',
padding: 3,
paddingLeft: 5,
paddingRight: 5,
...fonts.fontPrimarySemiBold,
paddingHorizontal: 5,
margin: 2,
borderWidth: 1,
overflow: 'hidden',
borderRadius: 2,
borderRadius: 3,
minWidth: 50,
textAlign: 'center',
},
Expand Down

0 comments on commit 16204d5

Please sign in to comment.