Skip to content

Commit dc7707d

Browse files
cee-chenJasonStoltz
authored andcommitted
Fix value boosts with long overflowing text
1 parent a948765 commit dc7707d

1 file changed

Lines changed: 7 additions & 11 deletions

File tree

  • x-pack/plugins/enterprise_search/public/applications/app_search/components/relevance_tuning/boosts

x-pack/plugins/enterprise_search/public/applications/app_search/components/relevance_tuning/boosts/boost_item.tsx

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -33,18 +33,14 @@ export const BoostItem: React.FC<Props> = ({ id, boost, index, name }) => {
3333
className="boosts__item"
3434
buttonContentClassName="boosts__itemButton"
3535
buttonContent={
36-
<EuiFlexGroup responsive={false} wrap>
37-
<EuiFlexItem>
38-
<EuiFlexGroup responsive={false}>
39-
<EuiFlexItem grow={false}>
40-
<BoostIcon type={boost.type} />
41-
</EuiFlexItem>
42-
<EuiFlexItem grow={false}>{BOOST_TYPE_TO_DISPLAY_MAP[boost.type]}</EuiFlexItem>
43-
<EuiHideFor sizes={['xs', 's', 'm', 'l']}>
44-
<EuiFlexItem>{summary}</EuiFlexItem>
45-
</EuiHideFor>
46-
</EuiFlexGroup>
36+
<EuiFlexGroup responsive={false} alignItems="center">
37+
<EuiFlexItem grow={false}>
38+
<BoostIcon type={boost.type} />
4739
</EuiFlexItem>
40+
<EuiFlexItem grow={false}>{BOOST_TYPE_TO_DISPLAY_MAP[boost.type]}</EuiFlexItem>
41+
<EuiHideFor sizes={['xs', 's', 'm', 'l']}>
42+
<EuiFlexItem className="eui-textBreakAll">{summary}</EuiFlexItem>
43+
</EuiHideFor>
4844
<EuiFlexItem grow={false}>
4945
<ValueBadge>{boost.factor}</ValueBadge>
5046
</EuiFlexItem>

0 commit comments

Comments
 (0)