diff --git a/resources/assets/js/components/ObservationDetails.jsx b/resources/assets/js/components/ObservationDetails.jsx index d6534a9b..259c0674 100644 --- a/resources/assets/js/components/ObservationDetails.jsx +++ b/resources/assets/js/components/ObservationDetails.jsx @@ -279,9 +279,9 @@ export default class ObservationDetails extends Component { let confirmation = this.state.confirmation return ( -
-
- +
+ this.setState({controlModalContent: 'collection', showControlModal: true})}> @@ -289,7 +289,7 @@ export default class ObservationDetails extends Component { Add to Collection {User.owns(observation) ? - this.setState({showShareLinkModal: true})}> @@ -297,7 +297,7 @@ export default class ObservationDetails extends Component { Share Link : null} {observation.flags.length === 0 ? - this.setState({controlModalContent: 'flag', showControlModal: true})}> @@ -306,7 +306,7 @@ export default class ObservationDetails extends Component { : null} {User.can('contact users') ? - this.setState({showEmail: true})}> @@ -314,9 +314,11 @@ export default class ObservationDetails extends Component { Contact Submitter : null} +
+ {User.can('confirm species') ? - this.confirm(false, observation)} > + this.confirm(false, observation)} > {this.state.incorrectMarks} @@ -326,7 +328,7 @@ export default class ObservationDetails extends Component { Marks : -
+
{this.state.incorrectMarks} @@ -334,8 +336,8 @@ export default class ObservationDetails extends Component { Marks
} {User.can('confirm species') ? - this.confirm(true, observation)}> + this.confirm(true, observation)}> {this.state.correctMarks} @@ -345,14 +347,15 @@ export default class ObservationDetails extends Component { Marks : -
+
{this.state.correctMarks} Marks
} -
+
+
{this._renderControlModal()} diff --git a/resources/assets/sass/_layout.scss b/resources/assets/sass/_layout.scss index d9f74040..5246f96f 100644 --- a/resources/assets/sass/_layout.scss +++ b/resources/assets/sass/_layout.scss @@ -337,3 +337,17 @@ a.box { flex-direction: row; } +.flex{ + display: flex; +} +.flex-row{ + display: flex; + flex-direction: row; +} +.flex-col{ + display: flex; + flex-direction: column; +} +.fit-content{ + width: fit-content; +} \ No newline at end of file