Skip to content

Commit

Permalink
position polygon controls to improve UX
Browse files Browse the repository at this point in the history
  • Loading branch information
leopoldjoy committed Oct 31, 2018
1 parent d8fe1cf commit e10d80b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/components/PolygonControls/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ const Container = styled.div`
0px 1px 5px 0px rgba(0, 0, 0, 0.2),
0px 2px 2px 0px rgba(0, 0, 0, 0.14),
0px 3px 1px -2px rgba(0, 0, 0, 0.12);
margin-top: 16px;
transform-origin: top left;
animation: ${fadeInScale} 0.31s cubic-bezier(0.175, 0.885, 0.32, 1.275);
Expand Down Expand Up @@ -61,7 +60,7 @@ function PolygonControls (props) {
style={{
position: 'absolute',
left: `${getHorizontallyCentralPoint(geometry.points)}%`,
top: `${getVerticallyLowestPoint(geometry.points)}%`,
top: `${(getVerticallyLowestPoint(geometry.points) + 10)}%`,
...props.style
}}
>
Expand Down

0 comments on commit e10d80b

Please sign in to comment.