Skip to content

Commit

Permalink
fix pool route line (#401)
Browse files Browse the repository at this point in the history
  • Loading branch information
harshal2608 authored Aug 19, 2024
1 parent 05c0c62 commit 672e561
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/components/RoutingDiagram/RoutingDiagram.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@ const BadgeText = styled(ThemedText.LabelMicro)`
margin: 0 6px 0 12px !important;
`

const VersionBadgeText = styled(ThemedText.LabelMicro)`
word-break: normal;
`

export default function RoutingDiagram({
currencyIn,
currencyOut,
Expand All @@ -119,7 +123,9 @@ export default function RoutingDiagram({
<CurrencyLogo currency={tokenIn} size="20px" />
<PoolBadgeWhite>
{entry.type}
<BadgeText style={{ fontWeight: 300, marginLeft: '4px' }}>{formatPercent(entry.percent)}</BadgeText>
<VersionBadgeText style={{ fontWeight: 300, marginLeft: '4px' }}>
{formatPercent(entry.percent)}
</VersionBadgeText>
</PoolBadgeWhite>
</WrapperLabel>
<Route entry={entry} />
Expand Down

0 comments on commit 672e561

Please sign in to comment.