fix(ui): 统一认证页输入框 36px 与视觉样式
This commit is contained in:
@@ -88,7 +88,6 @@ const TwoFAVerification = ({ onSuccess, onBack, isModal = false }) => {
|
||||
value={verificationCode}
|
||||
onChange={setVerificationCode}
|
||||
onKeyPress={handleKeyPress}
|
||||
size='large'
|
||||
style={{ marginBottom: 16 }}
|
||||
autoFocus
|
||||
/>
|
||||
@@ -98,7 +97,6 @@ const TwoFAVerification = ({ onSuccess, onBack, isModal = false }) => {
|
||||
type='primary'
|
||||
loading={loading}
|
||||
block
|
||||
size='large'
|
||||
style={{ marginBottom: 16 }}
|
||||
>
|
||||
{t('验证并登录')}
|
||||
@@ -115,7 +113,8 @@ const TwoFAVerification = ({ onSuccess, onBack, isModal = false }) => {
|
||||
setUseBackupCode(!useBackupCode);
|
||||
setVerificationCode('');
|
||||
}}
|
||||
style={{ marginRight: 16, color: '#1890ff', padding: 0 }}
|
||||
style={{ marginRight: 16, padding: 0 }}
|
||||
className='!text-brand'
|
||||
>
|
||||
{useBackupCode ? t('使用认证器验证码') : t('使用备用码')}
|
||||
</Button>
|
||||
@@ -125,7 +124,8 @@ const TwoFAVerification = ({ onSuccess, onBack, isModal = false }) => {
|
||||
theme='borderless'
|
||||
type='tertiary'
|
||||
onClick={onBack}
|
||||
style={{ color: '#1890ff', padding: 0 }}
|
||||
style={{ padding: 0 }}
|
||||
className='!text-brand'
|
||||
>
|
||||
{t('返回登录')}
|
||||
</Button>
|
||||
@@ -177,7 +177,6 @@ const TwoFAVerification = ({ onSuccess, onBack, isModal = false }) => {
|
||||
value={verificationCode}
|
||||
onChange={setVerificationCode}
|
||||
onKeyPress={handleKeyPress}
|
||||
size='large'
|
||||
style={{ marginBottom: 16 }}
|
||||
autoFocus
|
||||
/>
|
||||
@@ -187,7 +186,6 @@ const TwoFAVerification = ({ onSuccess, onBack, isModal = false }) => {
|
||||
type='primary'
|
||||
loading={loading}
|
||||
block
|
||||
size='large'
|
||||
style={{ marginBottom: 16 }}
|
||||
>
|
||||
{t('验证并登录')}
|
||||
@@ -204,7 +202,8 @@ const TwoFAVerification = ({ onSuccess, onBack, isModal = false }) => {
|
||||
setUseBackupCode(!useBackupCode);
|
||||
setVerificationCode('');
|
||||
}}
|
||||
style={{ marginRight: 16, color: '#1890ff', padding: 0 }}
|
||||
style={{ marginRight: 16, padding: 0 }}
|
||||
className='!text-brand'
|
||||
>
|
||||
{useBackupCode ? t('使用认证器验证码') : t('使用备用码')}
|
||||
</Button>
|
||||
@@ -214,7 +213,8 @@ const TwoFAVerification = ({ onSuccess, onBack, isModal = false }) => {
|
||||
theme='borderless'
|
||||
type='tertiary'
|
||||
onClick={onBack}
|
||||
style={{ color: '#1890ff', padding: 0 }}
|
||||
style={{ padding: 0 }}
|
||||
className='!text-brand'
|
||||
>
|
||||
{t('返回登录')}
|
||||
</Button>
|
||||
|
||||
Reference in New Issue
Block a user