Skip to content

Commit

Permalink
fix: 25% margin at chart bottom to prevent overlap with buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
0xKheops committed Dec 12, 2024
1 parent 69c584a commit 38c26cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/extension/src/ui/domains/Asset/AssetPriceChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ const Chart: FC<{
const allPrices = prices.map(([, price]) => price)
const minPrice = Math.min(...allPrices)
const maxPrice = Math.max(...allPrices)
const suggestedMin = minPrice - (maxPrice - minPrice) * 0.2
const suggestedMin = minPrice - (maxPrice - minPrice) * 0.25

// sometimes chart's onHover is called after mouse has left the canvas, so we need to track this
let isHovering = false
Expand Down

0 comments on commit 38c26cc

Please sign in to comment.