Skip to content

Commit

Permalink
fix #60
Browse files Browse the repository at this point in the history
  • Loading branch information
GraemeFulton committed Jul 21, 2024
1 parent e8eb7a2 commit 8db02c2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/Dashboard/PostCard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,9 @@ const PostCard = ({ post, refetch, user, edit }) => {
: `/toolbox/post/${post.id}`
}
>
<h3 className="text-xl font-semibold max-w-2xl ">{post.title}</h3>
<h3 className="text-xl font-semibold max-w-2xl ">{post.draft_title?post.draft_title:post.title}</h3>
<p className="text-base text-gray-600 mb-3 max-w-[38rem] line-clamp-2 overflow-ellipses">
{post.excerpt}
{post.draft_excerpt?post.draft_excerpt:post.excerpt}
</p>
<div className="flex gap-1.5">
<p className="text-sm my-auto text-gray-500">
Expand Down
1 change: 1 addition & 0 deletions lib/queries/creatorArticlesQuery.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ query CreatorArticles($status:[String]!, $pageSize: Int, $offset: Int) {
slug
type
title
draft_title
date
status
excerpt
Expand Down
1 change: 1 addition & 0 deletions lib/queries/userArticlesQuery.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ query UserArticles($status:[String]!, $pageSize: Int, $offset: Int) {
slug
type
title
draft_title
date
status
excerpt
Expand Down

0 comments on commit 8db02c2

Please sign in to comment.