fix: chart size responsiveness issue (#4441)

fixed responsiveness issue
This commit is contained in:
cartcrom 2022-08-22 17:15:24 -04:00 committed by GitHub
parent 6b2b771dc4
commit 9e9d98bb31
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

@ -136,7 +136,7 @@ function tickFormat(
}
}
const margin = { top: 86, bottom: 48, crosshair: 72 }
const margin = { top: 100, bottom: 48, crosshair: 72 }
const timeOptionsHeight = 44
const crosshairDateOverhang = 80
@ -216,7 +216,7 @@ export function PriceChart({ width, height, token }: PriceChartProps) {
locale
)
const [delta, arrow] = getDelta(startingPrice.value, displayPrice.value)
const crosshairEdgeMax = width * 0.97
const crosshairEdgeMax = width * 0.85
const crosshairAtEdge = !!crosshair && crosshair > crosshairEdgeMax
return (

@ -125,6 +125,7 @@ const TokenSymbol = styled.span`
`
export const TopArea = styled.div`
max-width: 832px;
overflow: hidden;
`
export const ResourcesContainer = styled.div`
display: flex;