File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 66
66
background-color : unset ;
67
67
}
68
68
}
69
+
70
+ // Fix a bug with search modal: very long text is not truncated with an ellipsis
71
+ // https://github.com/openedx/frontend-app-authoring/issues/1900
72
+ .hit-description {
73
+ display : -webkit-box ; /* stylelint-disable-line value-no-vendor-prefix */
74
+ -webkit-line-clamp : 1 ;
75
+ -webkit-box-orient : vertical ;
76
+ overflow : hidden ;
77
+ }
69
78
}
Original file line number Diff line number Diff line change @@ -181,7 +181,7 @@ const SearchResult: React.FC<{ hit: ContentHit }> = ({ hit }) => {
181
181
< div className = "hit-name small" >
182
182
< Highlight text = { hit . formatted . displayName } />
183
183
</ div >
184
- < div className = "hit-description x-small text-truncate " >
184
+ < div className = "hit-description x-small" >
185
185
< Highlight text = { hit . formatted . content ?. htmlContent ?? '' } />
186
186
< Highlight text = { hit . formatted . content ?. capaContent ?? '' } />
187
187
</ div >
You can’t perform that action at this time.
0 commit comments