Skip to content

Commit

Permalink
Merge pull request #12 from flyingcarpet-network/feature/FD-136-and-F…
Browse files Browse the repository at this point in the history
…D-135-fix-label-bugs

fix bugs with annotation labels
  • Loading branch information
bneiluj authored Nov 9, 2018
2 parents 1c3c5fc + 1a81b38 commit e8aed50
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
6 changes: 3 additions & 3 deletions src/components/Annotation.js
Original file line number Diff line number Diff line change
Expand Up @@ -281,14 +281,14 @@ export default compose(
})
)}
{props.annotations.map(annotation => (
this.shouldAnnotationBeActive(annotation, topAnnotationAtMouse)
&& (
/* this.shouldAnnotationBeActive(annotation, topAnnotationAtMouse)
&& ( */
renderContent({
key: annotation.data.id,
annotation: annotation,
imageZoomAmount: props.imageZoomAmount
})
)
// )
))}
{!props.disableEditor
&& props.value
Expand Down
5 changes: 3 additions & 2 deletions src/components/PolygonControls/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,10 @@ const Container = styled.div`
animation: ${fadeInScale} 0.31s cubic-bezier(0.175, 0.885, 0.32, 1.275);
overflow: hidden;
margin-left: -50%;
margin-right: 50%
`
// margin-left: -50%;
// margin-right: 50%
//`

const Button = styled.div`
background: whitesmoke;
Expand Down
4 changes: 2 additions & 2 deletions src/components/RadioButtonEditor/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function RadioButtonEditor (props) {
return (
<React.Fragment>
<Inner style={{fontSize: ((0.5 + zoomBetweenHalfAndOne) + 'rem'), padding: ((4 + (4 * zoomBetweenHalfAndOne)) + 'px ' + (8 + (8 * zoomBetweenHalfAndOne)) + 'px')}}>
<div><h6 style={{margin: '0px 0px', textAlign: 'center'}}> - Coffee Age - </h6></div>
<div><h6 style={{margin: '0px 0px', textAlign: 'center', fontSize: ((0.5 + zoomBetweenHalfAndOne) + 'rem')}}> - Coffee Age - </h6></div>
<div>
<label><input type="radio"
name="age"
Expand All @@ -51,7 +51,7 @@ function RadioButtonEditor (props) {
/> Mature</label>
</div>

<div><h6 style={{margin: '0px 0px', textAlign: 'center'}}> - Renovation Type - </h6></div>
<div><h6 style={{margin: '0px 0px', textAlign: 'center', fontSize: ((0.5 + zoomBetweenHalfAndOne) + 'rem')}}> - Renovation Type - </h6></div>
<div>
<label><input type="radio"
name="renovationType"
Expand Down

0 comments on commit e8aed50

Please sign in to comment.