Skip to content

Commit

Permalink
fix: fix current price area in graph tooltip (#556)
Browse files Browse the repository at this point in the history
* fix: fix current price area in graph tooltip

* fix: font size
  • Loading branch information
jinoosss authored Nov 12, 2024
1 parent 694d05f commit c0be32b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ export const PoolGraphTooltipContainer = styled.div`
flex-direction: row;
align-items: center;
&.price {
width: 100%;
justify-content: flex-end;
}
&.price-range {
justify-content: flex-end;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ const PoolGraphTooltip: React.FC<React.PropsWithRef<PoolGraphTooltipProps>> = ({
{tooltipInfo.tokenA.symbol} {t("common:price")}
</span>
</span>
<span className={makeClassNameWithSmallFont("token-amount-value price-range", displayTooltipInfo.tokenAPriceRange)}>
{displayTooltipInfo.tokenAPriceRange}
<span className={"token-amount-value price"}>
{displayTooltipInfo.tokenAPrice}
</span>
</div>

Expand All @@ -131,8 +131,8 @@ const PoolGraphTooltip: React.FC<React.PropsWithRef<PoolGraphTooltipProps>> = ({
{tooltipInfo.tokenB.symbol} {t("common:price")}
</span>
</span>
<span className={makeClassNameWithSmallFont("token-amount-value price-range", displayTooltipInfo.tokenBPriceRange)}>
{displayTooltipInfo.tokenBPriceRange}
<span className={"token-amount-value price"}>
{displayTooltipInfo.tokenBPrice}
</span>
</div>
</div>
Expand Down

0 comments on commit c0be32b

Please sign in to comment.