Skip to content

Commit

Permalink
Fix value boosts with long overflowing text
Browse files Browse the repository at this point in the history
  • Loading branch information
cee-chen authored and JasonStoltz committed Feb 26, 2021
1 parent a948765 commit dc7707d
Showing 1 changed file with 7 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,18 +33,14 @@ export const BoostItem: React.FC<Props> = ({ id, boost, index, name }) => {
className="boosts__item"
buttonContentClassName="boosts__itemButton"
buttonContent={
<EuiFlexGroup responsive={false} wrap>
<EuiFlexItem>
<EuiFlexGroup responsive={false}>
<EuiFlexItem grow={false}>
<BoostIcon type={boost.type} />
</EuiFlexItem>
<EuiFlexItem grow={false}>{BOOST_TYPE_TO_DISPLAY_MAP[boost.type]}</EuiFlexItem>
<EuiHideFor sizes={['xs', 's', 'm', 'l']}>
<EuiFlexItem>{summary}</EuiFlexItem>
</EuiHideFor>
</EuiFlexGroup>
<EuiFlexGroup responsive={false} alignItems="center">
<EuiFlexItem grow={false}>
<BoostIcon type={boost.type} />
</EuiFlexItem>
<EuiFlexItem grow={false}>{BOOST_TYPE_TO_DISPLAY_MAP[boost.type]}</EuiFlexItem>
<EuiHideFor sizes={['xs', 's', 'm', 'l']}>
<EuiFlexItem className="eui-textBreakAll">{summary}</EuiFlexItem>
</EuiHideFor>
<EuiFlexItem grow={false}>
<ValueBadge>{boost.factor}</ValueBadge>
</EuiFlexItem>
Expand Down

0 comments on commit dc7707d

Please sign in to comment.