Commit 9e9d98bb authored by cartcrom's avatar cartcrom Committed by GitHub

fix: chart size responsiveness issue (#4441)

fixed responsiveness issue
parent 6b2b771d
...@@ -136,7 +136,7 @@ function tickFormat( ...@@ -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 timeOptionsHeight = 44
const crosshairDateOverhang = 80 const crosshairDateOverhang = 80
...@@ -216,7 +216,7 @@ export function PriceChart({ width, height, token }: PriceChartProps) { ...@@ -216,7 +216,7 @@ export function PriceChart({ width, height, token }: PriceChartProps) {
locale locale
) )
const [delta, arrow] = getDelta(startingPrice.value, displayPrice.value) const [delta, arrow] = getDelta(startingPrice.value, displayPrice.value)
const crosshairEdgeMax = width * 0.97 const crosshairEdgeMax = width * 0.85
const crosshairAtEdge = !!crosshair && crosshair > crosshairEdgeMax const crosshairAtEdge = !!crosshair && crosshair > crosshairEdgeMax
return ( return (
......
...@@ -125,6 +125,7 @@ const TokenSymbol = styled.span` ...@@ -125,6 +125,7 @@ const TokenSymbol = styled.span`
` `
export const TopArea = styled.div` export const TopArea = styled.div`
max-width: 832px; max-width: 832px;
overflow: hidden;
` `
export const ResourcesContainer = styled.div` export const ResourcesContainer = styled.div`
display: flex; display: flex;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment