Skip to content

Commit

Permalink
Ensure components are full width
Browse files Browse the repository at this point in the history
  • Loading branch information
yrjarv committed Oct 28, 2024
1 parent af18eb2 commit 88ea9dd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/components/input/CustomNumberInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export default class CustomNumberInput extends Component {
value={value}
error={error}
onFocus={(e) => e.target.select()}
fullWidth
onBlur={(e) => {
let value = check(e.target.value) ? 0 : e.target.value;
if (value === "") value = 0;
Expand Down
6 changes: 5 additions & 1 deletion app/pages/main/volunteering/logs/workLogInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ export default function workLogInput(
<DateTimePicker
className="endDateTime"
sx={{ display: "none" }}
slotProps={{ textField: { fullWidth: true } }}
label="End of work"
value={endDateTime} // Replacing defaultValue to make it synced with the actual value
ampm={false}
Expand Down Expand Up @@ -172,7 +173,10 @@ export default function workLogInput(
className="endInputMethodChangeButton"
size="small"
color="primary"
style={{ marginLeft: "10px" }}
style={{
marginLeft: "10px",
padding: "10px",
}}
onClick={() => {switchEndInputMethod();}}
>
{ shouldInputHours ? <PunchClock /> : <CalendarToday /> }
Expand Down

0 comments on commit 88ea9dd

Please sign in to comment.