Skip to content

Commit

Permalink
chore: correct price offset
Browse files Browse the repository at this point in the history
  • Loading branch information
kate-deriv committed Nov 5, 2024
1 parent 6d9b77b commit dab75f6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/PriceLine.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ const PriceLine = ({
if (!showBarrier) return null;

const width = priceLineWidth + 12;
const price_right_offset = (isOverlappingWithPriceLine ? width - overlappedBarrierWidth : 0) + (isMobile ? 20 : 3);
const price_right_offset =
(isOverlappingWithPriceLine ? width + 6 - overlappedBarrierWidth : 0) + (isMobile ? 20 : 3);

return (
<div
Expand Down

0 comments on commit dab75f6

Please sign in to comment.