From e813f2cb4c16f2e531de6504ac17eed391eb9c41 Mon Sep 17 00:00:00 2001 From: Oleg Pykhalov Date: Sat, 14 Nov 2020 03:26:15 +0000 Subject: Better list. Signed-off-by: Oleg Pykhalov --- src/components/repository-list/list-item/index.js | 35 ++++++---------------- .../repository-list/list-item/styles.css | 7 ++--- 2 files changed, 11 insertions(+), 31 deletions(-) diff --git a/src/components/repository-list/list-item/index.js b/src/components/repository-list/list-item/index.js index 2efc744..0484a9b 100644 --- a/src/components/repository-list/list-item/index.js +++ b/src/components/repository-list/list-item/index.js @@ -15,19 +15,6 @@ class ListItem extends React.Component { return (
-
-

- - { this.props.repository.owner.login } / - { this.props.repository.name } - -

-

Built by · { this.props.repository.owner.login } · { moment(this.props.repository.created_at).format('MMMM D YYYY') }

-
-
-

{ this.props.repository.description || 'No description given.' }

-
-
{ this.props.repository.language && ( @@ -45,6 +32,7 @@ class ListItem extends React.Component { rel="noopener noreferrer" target="_blank"> +   { this.props.repository.stargazers_count.toLocaleString() } +   { this.props.repository.forks ? this.props.repository.forks.toLocaleString() : 0 } +   { this.props.repository.open_issues ? this.props.repository.open_issues.toLocaleString() : 0 } -
+ + { this.props.repository.owner.login } / + { this.props.repository.name } + +   + { this.props.repository.description || 'No description given.' }
- - - { - e.target.src = '/img/logo.svg'; - } } - alt={ this.props.repository.owner.login } /> -
); } diff --git a/src/components/repository-list/list-item/styles.css b/src/components/repository-list/list-item/styles.css index 8facc40..d16efdf 100644 --- a/src/components/repository-list/list-item/styles.css +++ b/src/components/repository-list/list-item/styles.css @@ -1,7 +1,6 @@ .list-item-container { - padding: 0 0 20px; - margin-bottom: 20px; - border-bottom: 1px solid #e8e8e8; + padding: 0 0 5px; + margin-bottom: 5px; position: relative; } @@ -72,7 +71,6 @@ width: 10px; height: 10px; margin-right: 4px; - border-radius: 50%; } .list-item-container .author-link { @@ -82,7 +80,6 @@ } .list-item-container .author-img { - height: 92px; width: 92px; border-radius: 92px; } -- cgit v1.2.3