File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6666 background-color : unset ;
6767 }
6868 }
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+ }
6978}
Original file line number Diff line number Diff line change @@ -181,7 +181,7 @@ const SearchResult: React.FC<{ hit: ContentHit }> = ({ hit }) => {
181181 < div className = "hit-name small" >
182182 < Highlight text = { hit . formatted . displayName } />
183183 </ div >
184- < div className = "hit-description x-small text-truncate " >
184+ < div className = "hit-description x-small" >
185185 < Highlight text = { hit . formatted . content ?. htmlContent ?? '' } />
186186 < Highlight text = { hit . formatted . content ?. capaContent ?? '' } />
187187 </ div >
@@ -190,6 +190,7 @@ const SearchResult: React.FC<{ hit: ContentHit }> = ({ hit }) => {
190190 </ div >
191191 </ Stack >
192192 < IconButton
193+ className = "flex-shrink-0"
193194 src = { OpenInNew }
194195 iconAs = { Icon }
195196 onClick = { openContextInNewWindow }
You can’t perform that action at this time.
0 commit comments