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 }) => {
4545 < img src = { language . icon } alt = { language . lang } />
4646 </ div >
4747 < 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 >
5149 </ button >
5250 </ li >
5351 ) ) }
Original file line number Diff line number Diff line change @@ -528,6 +528,21 @@ abbr {
528528
529529.snippet__title {
530530 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 : "…" ;
531546}
532547
533548/*------------------------------------*\
You can’t perform that action at this time.
0 commit comments