Skip to content

Commit

Permalink
Adjusts product card titles for better Lighthouse score (vercel#1147)
Browse files Browse the repository at this point in the history
* Adjusts product card titles for better Lighthouse score

* line-clamp
  • Loading branch information
manovotny authored Aug 4, 2023
1 parent 469cd7b commit 36360a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/label.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ const Label = ({
'lg:px-20 lg:pb-[35%]': position === 'center'
})}
>
<div className="flex items-center rounded-full border bg-white/70 p-1 text-[10px] font-semibold text-black backdrop-blur-md @[275px]/label:text-xs dark:border-neutral-800 dark:bg-black/70 dark:text-white">
<h3 className="mr-4 inline pl-2 leading-none tracking-tight">{title}</h3>
<div className="flex w-full items-center rounded-full border bg-white/70 p-1 text-xs font-semibold text-black backdrop-blur-md dark:border-neutral-800 dark:bg-black/70 dark:text-white">
<h3 className="mr-4 line-clamp-2 flex-grow pl-2 leading-none tracking-tight">{title}</h3>
<Price
className="flex-none rounded-full bg-blue-600 p-2 text-white"
amount={amount}
Expand Down

0 comments on commit 36360a5

Please sign in to comment.