Skip to content

Commit

Permalink
stye the date span element
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnMwendwa committed May 25, 2023
1 parent 42c857a commit cb7cac7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/BookCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ const BookCard = ({ _id, title, author, start, end }) => {
<div className="border-2 rounded-md p-4 w-full relative">
<div className="flex items-center justify-between">
<h2 className="font-bold text-xl sm:text-2xl">{title}</h2>
<span className="font-mono absolute top-0 right-0 bg-black text-white pl-3 pr-1 rounded-tr-md rounded-bl-full">
<span className="font-mono absolute top-0 right-0 bg-black text-white pl-3 pr-1 rounded-tr-md rounded-bl-3xl text-sm">
{getYear(start)}
</span>
</div>
Expand Down

0 comments on commit cb7cac7

Please sign in to comment.