File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ export function News({ articles }: { articles: NewsArticle[] }) {
3030 < div
3131 key = { slug }
3232 className = { cn (
33- "absolute left-0 top-0 scale-[var(--scale)] transition-[opacity,transform] duration-200" ,
33+ "absolute left-0 top-0 size-full scale-[var(--scale)] transition-[opacity,transform] duration-200" ,
3434 cardCount - idx > 3
3535 ? [
3636 "opacity-0 group-hover:translate-y-[var(--y)] group-hover:opacity-[var(--opacity)]" ,
@@ -64,10 +64,7 @@ export function News({ articles }: { articles: NewsArticle[] }) {
6464 </ div >
6565 ) ) }
6666 < div className = "invisible" aria-hidden >
67- < NewsCard
68- title = "Title Title"
69- description = "Description of the article that clicking this card will take you to"
70- />
67+ < NewsCard title = "Title" description = "Description" />
7168 </ div >
7269 </ div >
7370 </ div >
@@ -164,7 +161,9 @@ function NewsCard({
164161 < span className = "line-clamp-1 font-medium text-neutral-900" >
165162 { title }
166163 </ span >
167- < p className = "line-clamp-2 text-neutral-500" > { description } </ p >
164+ < p className = "line-clamp-2 h-10 leading-5 text-neutral-500" >
165+ { description }
166+ </ p >
168167 </ div >
169168 < div className = "relative mt-3 aspect-[16/9] w-full shrink-0 overflow-hidden rounded border border-neutral-200 bg-neutral-100" >
170169 { image && (
You can’t perform that action at this time.
0 commit comments