Skip to content

Commit

Permalink
Merge pull request #49 from shefing/fixBugs
Browse files Browse the repository at this point in the history
fix jump arrow
  • Loading branch information
RachelBra authored Feb 25, 2024
2 parents 90918a3 + f055c15 commit 72d0d40
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/math/numbersLine/src/components/JumpArrow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ const JumpArrow = ({ underRuler, jumpWidth }: IProps) => {
<path
d={
underRuler
? `M6,${20 - matchingPixels / 3} Q${jumpWidth * 0.5},${jumpArrowHeight * 2 - 10} ${jumpWidth},0`
: `M0,${jumpArrowHeight} Q${jumpWidth * 0.5},-${jumpArrowHeight - 10} ${jumpWidth - 6},${jumpArrowHeight - 20 + matchingPixels / 3}`
? `M6,${20 - matchingPixels / 3} Q${jumpWidth * 0.5},${jumpArrowHeight * 2 - 15} ${jumpWidth},0`
: `M0,${jumpArrowHeight} Q${jumpWidth * 0.5},-${jumpArrowHeight - 15} ${jumpWidth - 6},${jumpArrowHeight - 20 + matchingPixels / 3}`
}
fill="none"
stroke={underRuler ? "#F48460" : "#009FDE"}
Expand Down

0 comments on commit 72d0d40

Please sign in to comment.