File tree Expand file tree Collapse file tree 3 files changed +16
-3
lines changed Expand file tree Collapse file tree 3 files changed +16
-3
lines changed Original file line number Diff line number Diff line change @@ -45,9 +45,7 @@ const SnippetList = ({ query }: { query?: string | null }) => {
45
45
< img src = { language . icon } alt = { language . lang } />
46
46
</ div >
47
47
< h3 className = "snippet__title" > { snippet . title } </ h3 >
48
- { query && (
49
- < p className = "snippet__description" > { snippet . description } </ p >
50
- ) }
48
+ < p className = "snippet__description" > { snippet . description } </ p >
51
49
</ button >
52
50
</ li >
53
51
) ) }
Original file line number Diff line number Diff line change @@ -528,6 +528,21 @@ abbr {
528
528
529
529
.snippet__title {
530
530
color : var (--text-primary );
531
+ display : -webkit-box;
532
+ -webkit-box-orient : vertical;
533
+ -webkit-line-clamp : 1 ;
534
+ line-clamp : 1 ;
535
+ overflow : hidden;
536
+ text-overflow : "…" ;
537
+ }
538
+
539
+ .snippet__description {
540
+ display : -webkit-box;
541
+ -webkit-box-orient : vertical;
542
+ -webkit-line-clamp : 1 ;
543
+ line-clamp : 1 ;
544
+ overflow : hidden;
545
+ text-overflow : "…" ;
531
546
}
532
547
533
548
/*------------------------------------*\
You can’t perform that action at this time.
0 commit comments