Skip to content

Commit

Permalink
#3024: Remove unnecessary top-level label on small width
Browse files Browse the repository at this point in the history
Also fine tune column sizes on engagement planning part
  • Loading branch information
cemalettin-work committed Dec 22, 2020
1 parent c3fe17c commit 418d296
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions client/src/pages/reports/EngagementDateFormPartial.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ const EngagementDatePartialFormWithDuration = ({

return (
<FormGroup>
<Col sm={2} componentClass={ControlLabel}>
<Col xsHidden sm={2} componentClass={ControlLabel}>
Engagement planning
</Col>
<Col sm={4} style={{ marginLeft: "15px" }}>
<Col sm={3} 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={3} style={{ marginLeft: "15px" }}>
<Col sm={2} style={{ marginLeft: "15px", whiteSpace: "nowrap" }}>
<Field
name="duration"
label="Duration (minutes)"
Expand All @@ -86,8 +86,14 @@ const EngagementDatePartialFormWithDuration = ({
/>
</Col>
<Col
sm={2}
style={{ marginTop: "2.2em", maxWidth: "max-content" }}
sm={1}
style={{
marginTop: "2.2em",
maxWidth: "max-content",
display: "flex",
alignItems: "center",
whiteSpace: "nowrap"
}}
id="all-day-col"
>
<Checkbox
Expand Down

0 comments on commit 418d296

Please sign in to comment.