Skip to content

Commit

Permalink
Fixes #259 by updating CommandMenu date and title styling (#261)
Browse files Browse the repository at this point in the history
Add `whitespace-nowrap` to date and change tracking to wide
Add  text-balance and mr-2 to title to balance wrap and add space in between title and date
  • Loading branch information
AVGVSTVS96 authored Apr 24, 2024
1 parent 16724d3 commit af91cd1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/CommandMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,12 @@ export function CommandMenu({ buttonStyles, posts }: CommandMenuProps) {
<CommandItem
slot="blogPosts"
key={index}
className="mr-2 text-balance"
aria-label={`Link to blog post: ${post.data.title}`}
onSelect={() => navigate(`/posts/${post.slug}/`)}>
<NotebookText className={iconStyles} />
{post.data.title}
<CommandShortcut>
<CommandShortcut className="whitespace-nowrap tracking-wide">
{new Date(post.data.pubDate).toLocaleDateString('en-US', {
year: 'numeric',
month: 'short',
Expand Down

0 comments on commit af91cd1

Please sign in to comment.