Skip to content

Commit 5c7e17f

Browse files
committed
hotfix: revert length testing; larger width for inputs
1 parent a8b8102 commit 5c7e17f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

components/form.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1319,7 +1319,7 @@ export function MultiInput ({
13191319
onKeyDown={e => handleKeyDown(e, index)}
13201320
style={{
13211321
textAlign: 'center',
1322-
maxWidth: `${charLength * 40}px` // adjusts the max width of the input based on the charLength
1322+
maxWidth: `${charLength * 44}px` // adjusts the max width of the input based on the charLength
13231323
}}
13241324
prepend={showSequence && <InputGroup.Text>{index + 1}</InputGroup.Text>} // show the index of the input
13251325
hideError

pages/email.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export const MagicCodeForm = ({ onSubmit, disabled }) => {
5050
}}
5151
>
5252
<MultiInput
53-
length={8}
53+
length={6}
5454
charLength={1}
5555
name='token'
5656
required

0 commit comments

Comments
 (0)