Skip to content

Commit

Permalink
Get rid of width and margin
Browse files Browse the repository at this point in the history
  • Loading branch information
sinxwal authored and afc163 committed Dec 7, 2018
1 parent ce4027a commit 060d8c6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/common/Marks.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,8 @@ const Marks = ({
};

const leftStyle = {
width: `${markWidth}%`,
marginLeft: `${-markWidth / 2}%`,
left: `${(point - min) / range * 100}%`,
transform: translateX(-50%);
};

const style = vertical ? bottomStyle : leftStyle;
Expand Down

0 comments on commit 060d8c6

Please sign in to comment.