Captcha: improve style
This commit is contained in:
parent
43d494d43c
commit
97a4bfec28
1 changed files with 6 additions and 4 deletions
|
@ -3,7 +3,7 @@ import React, { useState, useEffect } from 'react';
|
||||||
import { useIntl, defineMessages, FormattedMessage } from 'react-intl';
|
import { useIntl, defineMessages, FormattedMessage } from 'react-intl';
|
||||||
|
|
||||||
import { fetchCaptcha } from 'soapbox/actions/auth';
|
import { fetchCaptcha } from 'soapbox/actions/auth';
|
||||||
import { Text, Input } from 'soapbox/components/ui';
|
import { Stack, Text, Input } from 'soapbox/components/ui';
|
||||||
import { useAppDispatch } from 'soapbox/hooks';
|
import { useAppDispatch } from 'soapbox/hooks';
|
||||||
|
|
||||||
const noOp = () => {};
|
const noOp = () => {};
|
||||||
|
@ -106,8 +106,10 @@ const NativeCaptchaField: React.FC<INativeCaptchaField> = ({ captcha, onChange,
|
||||||
const intl = useIntl();
|
const intl = useIntl();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className='captcha' >
|
<Stack space={2}>
|
||||||
<img alt='captcha' src={captcha.get('url')} onClick={onClick} />
|
<div className='flex items-center justify-center bg-white w-full border border-solid border-gray-300 dark:border-gray-600 rounded-md'>
|
||||||
|
<img alt='captcha' src={captcha.get('url')} onClick={onClick} />
|
||||||
|
</div>
|
||||||
|
|
||||||
<Input
|
<Input
|
||||||
type='text'
|
type='text'
|
||||||
|
@ -120,7 +122,7 @@ const NativeCaptchaField: React.FC<INativeCaptchaField> = ({ captcha, onChange,
|
||||||
onChange={onChange}
|
onChange={onChange}
|
||||||
required
|
required
|
||||||
/>
|
/>
|
||||||
</div>
|
</Stack>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue