Skip to content

Commit

Permalink
chore: Hide view count on small screens in BlogPostItem
Browse files Browse the repository at this point in the history
  • Loading branch information
pranshu05 committed Aug 24, 2024
1 parent 32b264b commit 3d937be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/(posts)/BlogPostItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ interface BlogPostItemProps {
const BlogPostItem: React.FC<BlogPostItemProps> = ({ slug, title, date, viewCount }) => (
<Link href={`/posts/${slug}`} passHref className='my-2'>
<div className='flex items-baseline gap-1'>
<span className='text-xl font-semibold link'>{title}</span>
<span className='text-zinc-400 text-sm'>{date} | {viewCount} Views</span>
<span className='text-base md:text-xl font-semibold link'>{title}</span>
<span className='text-zinc-400 text-sm hidden md:inline'>{date} | {viewCount} Views</span>
</div>
</Link>
)
Expand Down

0 comments on commit 3d937be

Please sign in to comment.