From f9ee548fd21cb9a408c4fbba94c9f3ff62dff6f4 Mon Sep 17 00:00:00 2001 From: chance-stribling Date: Tue, 6 Aug 2024 13:16:03 -0400 Subject: [PATCH 1/2] made some small css changes to observation details --- .../js/components/ObservationDetails.jsx | 31 ++++++++++--------- resources/assets/sass/_layout.scss | 14 +++++++++ 2 files changed, 31 insertions(+), 14 deletions(-) diff --git a/resources/assets/js/components/ObservationDetails.jsx b/resources/assets/js/components/ObservationDetails.jsx index d6534a9b..9924490b 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)} > +
+ + {User.can('confirm species') ? + 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 From d133569817fd303255b3a2c7f6278c3021ba459a Mon Sep 17 00:00:00 2001 From: Noah Caldwell Date: Wed, 7 Aug 2024 09:03:36 -0500 Subject: [PATCH 2/2] adds margin to buttons --- resources/assets/js/components/ObservationDetails.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/assets/js/components/ObservationDetails.jsx b/resources/assets/js/components/ObservationDetails.jsx index 9924490b..259c0674 100644 --- a/resources/assets/js/components/ObservationDetails.jsx +++ b/resources/assets/js/components/ObservationDetails.jsx @@ -316,8 +316,8 @@ export default class ObservationDetails extends Component { : null}
- {User.can('confirm species') ? - this.confirm(false, observation)} >