Skip to content

Commit

Permalink
Merge pull request #440 from Twenty-Three-Fifty-Nine/431-error-text-w…
Browse files Browse the repository at this point in the history
…hen-updating-a-template-shifts-the-input-fields

Added width to weight field in template editing/ creating
  • Loading branch information
JJeeff248 authored Jul 4, 2023
2 parents 4ce8a51 + 9221e16 commit 88b49c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/course-manipulation/CreateAssessmentCard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ const CreateAssessmentCard = (props) => {
</LocalizationProvider>

<TextField label="Grade Weight (%)" InputProps={{ inputProps: { min: 0 } }} value={details.weight} onChange={handleWeightChange}
sx={{ ml: 2 }} error={(details.weight <= 0 || details.weight > 100) && weightCheckOn}
sx={{ ml: 2, width: 225 }} error={(details.weight <= 0 || details.weight > 100) && weightCheckOn}
helperText={ getWeightHelperText(details, weightCheckOn) }
/>
</Box>
Expand Down

0 comments on commit 88b49c9

Please sign in to comment.