Skip to content

Commit

Permalink
#3024: Improve styling/responsiveness
Browse files Browse the repository at this point in the history
  • Loading branch information
cemalettin-work committed Dec 22, 2020
1 parent a92a719 commit 13bc8e9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion client/src/models/Report.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ export default class Report extends Model {
.nullable()
.test(
"duration",
"Duration must be defined when engagement time is set!",
"You must provide duration when engagement time(hour:minute) is provided",
function(duration) {
const { engagementDate } = this.parent
if (
Expand Down
6 changes: 3 additions & 3 deletions client/src/pages/reports/EngagementDateFormPartial.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const EngagementDatePartialFormWithDuration = ({
<Col sm={2} componentClass={ControlLabel}>
Engagement planning
</Col>
<Col lg={2} md={3} style={{ marginLeft: "15px" }}>
<Col sm={4} style={{ marginLeft: "15px" }}>
<Field
name="engagementDate"
component={FieldHelper.SpecialField}
Expand Down Expand Up @@ -65,7 +65,7 @@ const EngagementDatePartialFormWithDuration = ({
{Report.isFuture(values.engagementDate) && futureEngagementHint}
</Field>
</Col>
<Col sm={2} style={{ marginLeft: "15px" }}>
<Col sm={3} style={{ marginLeft: "15px" }}>
<Field
name="duration"
label="Duration (minutes)"
Expand All @@ -84,7 +84,7 @@ const EngagementDatePartialFormWithDuration = ({
disabled={isAllDay}
/>
</Col>
<Col sm={2} style={{ marginTop: "2.2em" }}>
<Col sm={2} style={{ marginTop: "2.2em", maxWidth: "max-content" }}>
<Checkbox
checked={isAllDay}
label="All Day"
Expand Down

0 comments on commit 13bc8e9

Please sign in to comment.