File tree 1 file changed +5
-6
lines changed
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[] }) {
30
30
< div
31
31
key = { slug }
32
32
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" ,
34
34
cardCount - idx > 3
35
35
? [
36
36
"opacity-0 group-hover:translate-y-[var(--y)] group-hover:opacity-[var(--opacity)]" ,
@@ -64,10 +64,7 @@ export function News({ articles }: { articles: NewsArticle[] }) {
64
64
</ div >
65
65
) ) }
66
66
< 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" />
71
68
</ div >
72
69
</ div >
73
70
</ div >
@@ -164,7 +161,9 @@ function NewsCard({
164
161
< span className = "line-clamp-1 font-medium text-neutral-900" >
165
162
{ title }
166
163
</ 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 >
168
167
</ div >
169
168
< div className = "relative mt-3 aspect-[16/9] w-full shrink-0 overflow-hidden rounded border border-neutral-200 bg-neutral-100" >
170
169
{ image && (
You can’t perform that action at this time.
0 commit comments