Skip to content

Commit

Permalink
Add dropdown menu separator and reduce word count
Browse files Browse the repository at this point in the history
threshold for post stats
  • Loading branch information
thebkht committed Nov 6, 2023
1 parent f6235c1 commit 2fef92f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions components/blog/navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ export default function PostTabs({ post: initialPost, className, session, author
<span>Edit</span>
</Link>
</DropdownMenuItem>
<DropdownMenuSeparator />
<DropdownMenuItem className="flex cursor-pointer items-center text-destructive focus:text-destructive"
onSelect={() => setShowDeleteAlert(true)} >
<Trash2 className="mr-2 h-4 w-4" />
Expand Down
2 changes: 1 addition & 1 deletion components/blog/post.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ export default function Post({ post: initialPost, author, sessionUser, tags, com

{
// if post word count is greater than 1000 show the stats
stats?.words > 500 && (
stats?.words > 200 && (
<div className="sticky top-0 w-full left-0 mt-8">
<PostTabs post={post} session={session} author={author} className="border-none" comments={comments} />
</div>
Expand Down

0 comments on commit 2fef92f

Please sign in to comment.