File tree Expand file tree Collapse file tree 2 files changed +7
-16
lines changed
src/components/SearchResultGroup Expand file tree Collapse file tree 2 files changed +7
-16
lines changed File renamed without changes.
Original file line number Diff line number Diff line change 3
3
import PromiseStatusTag from ' $components/PromiseDetail/PromiseStatusTag.svelte' ;
4
4
import VotingResultTag from ' $components/VotingResultTag/VotingResultTag.svelte' ;
5
5
import type { SearchResultItem } from ' $models/search' ;
6
- import HightlightText from ' ./HightlightText .svelte' ;
6
+ import HighlightText from ' ./HighlightText .svelte' ;
7
7
8
8
export let item: SearchResultItem ;
9
9
</script >
10
10
11
11
<a href ={item .url } data-sveltekit-reload >
12
12
<div class =" bg-ui-background px-4" >
13
- <div class =" item-inner-container " >
13
+ <div class =" flex gap-1 border-b border-ui-01 px-0 py-2 " >
14
14
<div >
15
15
{#if item .headingHighlight }
16
- <HightlightText textList ={item .headingHighlight } textClass =" text-sm text-text-02" />
16
+ <HighlightText
17
+ textList ={item .headingHighlight }
18
+ textClass =" text-sm text-text-02 line-clamp-2"
19
+ />
17
20
{:else }
18
- <div class ="text-sm text-text-02" >{item .heading }</div >
21
+ <div class ="line-clamp-2 text-sm text-text-02" >{item .heading }</div >
19
22
{/if }
20
23
{#if item .description }
21
24
<p class ="text-xs text-text-03" >{item .description }</p >
40
43
</div >
41
44
</div >
42
45
</a >
43
-
44
- <style lang =" postcss" >
45
- .item-inner-container {
46
- border-bottom : 1 px solid;
47
- padding : 8 px 0 ;
48
- display : flex;
49
- justify-content : space-between;
50
- align-items : center;
51
-
52
- @apply border-ui-01;
53
- }
54
- </style >
You can’t perform that action at this time.
0 commit comments