Skip to content

Commit

Permalink
front: stdcm: align text of input to the left to prevent them being c…
Browse files Browse the repository at this point in the history
…overed by the unit
  • Loading branch information
kmer2016 committed Sep 4, 2023
1 parent 4570fd6 commit 8b6c30d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions front/src/applications/stdcm/components/STDCMAllowances.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,27 +53,29 @@ const STDCMAllowances = () => {
<div className="col-3">
<InputSNCF
id="standardAllowanceTypeGridMarginBefore"
type="text"
type="number"
value={gridMarginBefore}
unit={ALLOWANCE_UNITS_KEYS.time}
condensed
onChange={(e) => dispatch(updateGridMarginBefore(+e.target.value || 0))}
sm
noMargin
label={t('allowances:gridMarginBeforeAfter')}
textAlignment="left"
/>
</div>
<div className="col-3">
<InputSNCF
id="standardAllowanceTypeGridMarginAfter"
type="text"
type="number"
value={gridMarginAfter}
unit={ALLOWANCE_UNITS_KEYS.time}
condensed
onChange={(e) => dispatch(updateGridMarginAfter(+e.target.value || 0))}
sm
noMargin
label=" "
textAlignment="left"
/>
</div>
<div className="col-6">
Expand All @@ -88,6 +90,7 @@ const STDCMAllowances = () => {
typeValue="number"
condensed
sm
textAlignment="left"
/>
</div>
</div>
Expand Down

0 comments on commit 8b6c30d

Please sign in to comment.