This commit is contained in:
Belen Curcio
2017-06-16 15:41:32 -03:00
parent fe94a5a6d1
commit e30d5a9c62
3 changed files with 8 additions and 7 deletions
@@ -9,12 +9,12 @@ const formatDate = (date) => {
const Story = ({author, title, createdAt, open, id, goToStory}) => {
return (
<li className={styles.story} onClick={() => goToStory(id)}>
<p className={styles.title}>{title}</p>
<p className={styles.meta}>
<span className={styles.title}>{title}</span>
<div className={styles.meta}>
<span className={styles.author}>By {author}</span>
<span className={styles.createdAt}>{formatDate(createdAt)}</span>
<span className={styles.status}>{open ? 'Open' : 'Closed'}</span>
</p>
</div>
</li>
);
};
@@ -67,12 +67,13 @@
}
.story {
padding: 10px 63px;
padding: 5px 63px;
border-bottom: 1px solid #ddd;
cursor: pointer;
display: block;
text-decoration: none;
height: 50px;
box-sizing: border-box;
&:hover {
background-color: #efefef;
@@ -86,7 +87,7 @@
.title, .meta {
margin: 0;
color: black;
font-size: 17px;
font-size: 15px;
}
.author, .createdAt, .status {
@@ -117,7 +118,7 @@
}
.searchResults {
padding: 10px 24px;
padding: 7px 24px;
}
.searchResults i {
@@ -212,7 +212,7 @@ const withModQueueQuery = withQuery(gql`
}) {
...CoralAdmin_Moderation_CommentConnection
}
assets: assets(query: {limit: 10}) {
assets: assets(query: {}) {
id
title
url