@@ -53,7 +53,7 @@ import SearchSvg from '../shared/SearchSvg';
5353import { TagItem , TagsContainer } from '../../styles/Tags' ;
5454import Container from '../../styles/Container' ;
5555import Title from '../../styles/Title' ;
56- import { Actions as ActionContainer , searchboxSuggestions , suggestionsContainer , TextArea } from '../../styles/Input' ;
56+ import { Actions as ActionContainer , searchboxSuggestions , Suggestion , SuggestionDescription , suggestionsContainer , TextArea } from '../../styles/Input' ;
5757import Button from '../../styles/Button' ;
5858import SuggestionItem from './addons/SuggestionItem' ;
5959import {
@@ -68,7 +68,6 @@ import CancelSvg from '../shared/CancelSvg';
6868import CustomSvg from '../shared/CustomSvg' ;
6969import SuggestionWrapper from './addons/SuggestionWrapper' ;
7070import AutofillSvg from '../shared/AutofillSvg' ;
71- import Flex from '../../styles/Flex' ;
7271import AutosuggestFooterContainer from '../../styles/AutoSuggestFooterContainer' ;
7372import HOOKS from '../../utils/hooks' ;
7473import { Answer , Footer , SearchBoxAISection , SourceTags } from '../../styles/SearchBoxAI' ;
@@ -2077,29 +2076,28 @@ const SearchBox = (props) => {
20772076 type = { `${ sectionItem . _suggestion_type } -search-icon` }
20782077 />
20792078 </ div >
2080- < div className = "trim" >
2081- < Flex direction = "column" >
2082- { sectionItem . label && (
2083- < TextWithTooltip
2084- title = { sectionItem . label }
2085- className = "section-list-item__label"
2086- innerHTML = {
2087- sectionItem . label
2088- }
2089- />
2090- ) }
2091- { sectionItem . description && (
2092- < div
2093- className = "section-list-item__description"
2094- dangerouslySetInnerHTML = { {
2095- __html : XSS (
2096- sectionItem . description ,
2097- ) ,
2098- } }
2099- />
2100- ) }
2101- </ Flex >
2102- </ div >
2079+ < Suggestion direction = "column" >
2080+ { sectionItem . label && (
2081+ < TextWithTooltip
2082+ title = { sectionItem . label }
2083+ className = "section-list-item__label"
2084+ innerHTML = {
2085+ sectionItem . label
2086+ }
2087+ />
2088+ ) }
2089+ { sectionItem . description && (
2090+ < SuggestionDescription
2091+ lines = { 1 }
2092+ className = "section-list-item__description"
2093+ dangerouslySetInnerHTML = { {
2094+ __html : XSS (
2095+ sectionItem . description ,
2096+ ) ,
2097+ } }
2098+ />
2099+ ) }
2100+ </ Suggestion >
21032101 { getActionIcon (
21042102 sectionItem ,
21052103 ) }
0 commit comments