fix(style): forget button in login page
This commit is contained in:
@@ -97,6 +97,12 @@ const LocalUserForm: React.FC<LocalUserFormProps> = (props) => {
|
|||||||
// enterprise cover layout (272px inner).
|
// enterprise cover layout (272px inner).
|
||||||
layout="vertical"
|
layout="vertical"
|
||||||
requiredMark={false}
|
requiredMark={false}
|
||||||
|
styles={{
|
||||||
|
label: {
|
||||||
|
width: '100%',
|
||||||
|
lineHeight: '24px'
|
||||||
|
}
|
||||||
|
}}
|
||||||
style={{ width: '360px', maxWidth: '100%', margin: '0 auto' }}
|
style={{ width: '360px', maxWidth: '100%', margin: '0 auto' }}
|
||||||
onFinish={handleLogin}
|
onFinish={handleLogin}
|
||||||
>
|
>
|
||||||
@@ -122,6 +128,9 @@ const LocalUserForm: React.FC<LocalUserFormProps> = (props) => {
|
|||||||
autoComplete="username"
|
autoComplete="username"
|
||||||
prefix={<UserOutlined />}
|
prefix={<UserOutlined />}
|
||||||
style={{ height: 44 }}
|
style={{ height: 44 }}
|
||||||
|
placeholder={intl.formatMessage({
|
||||||
|
id: 'common.login.username.holder'
|
||||||
|
})}
|
||||||
/>
|
/>
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
<Form.Item
|
<Form.Item
|
||||||
@@ -129,7 +138,25 @@ const LocalUserForm: React.FC<LocalUserFormProps> = (props) => {
|
|||||||
marginBottom: 20
|
marginBottom: 20
|
||||||
}}
|
}}
|
||||||
name="password"
|
name="password"
|
||||||
label={intl.formatMessage({ id: 'common.form.password' })}
|
label={
|
||||||
|
<Flex
|
||||||
|
align="center"
|
||||||
|
justify="space-between"
|
||||||
|
style={{ width: '100%' }}
|
||||||
|
>
|
||||||
|
<span>{intl.formatMessage({ id: 'common.form.password' })}</span>
|
||||||
|
<Button
|
||||||
|
type="link"
|
||||||
|
size="small"
|
||||||
|
className="reset-link"
|
||||||
|
style={{ fontSize: 12, padding: 0 }}
|
||||||
|
href={externalLinks.resetPassword}
|
||||||
|
target="_blank"
|
||||||
|
>
|
||||||
|
{intl.formatMessage({ id: 'common.button.forgotpassword' })}
|
||||||
|
</Button>
|
||||||
|
</Flex>
|
||||||
|
}
|
||||||
rules={[
|
rules={[
|
||||||
{
|
{
|
||||||
required: true,
|
required: true,
|
||||||
@@ -147,20 +174,9 @@ const LocalUserForm: React.FC<LocalUserFormProps> = (props) => {
|
|||||||
autoComplete="current-password"
|
autoComplete="current-password"
|
||||||
prefix={<LockOutlined />}
|
prefix={<LockOutlined />}
|
||||||
style={{ height: 44 }}
|
style={{ height: 44 }}
|
||||||
suffix={
|
placeholder={intl.formatMessage({
|
||||||
<Flex align="center" gap={0}>
|
id: 'common.login.password.holder'
|
||||||
<Button
|
})}
|
||||||
type="link"
|
|
||||||
size="small"
|
|
||||||
className="reset-link"
|
|
||||||
href={externalLinks.resetPassword}
|
|
||||||
target="_blank"
|
|
||||||
>
|
|
||||||
{intl.formatMessage({ id: 'common.button.forgotpassword' })}
|
|
||||||
</Button>
|
|
||||||
<Divider orientation="vertical" />
|
|
||||||
</Flex>
|
|
||||||
}
|
|
||||||
/>
|
/>
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
<Button
|
<Button
|
||||||
@@ -169,7 +185,7 @@ const LocalUserForm: React.FC<LocalUserFormProps> = (props) => {
|
|||||||
block
|
block
|
||||||
loading={props.loading}
|
loading={props.loading}
|
||||||
icon={<IconFont type="icon-login" />}
|
icon={<IconFont type="icon-login" />}
|
||||||
style={{ height: '44px', fontSize: '14px', marginTop: 16 }}
|
style={{ height: '44px', fontSize: '14px', marginTop: 8 }}
|
||||||
>
|
>
|
||||||
{intl.formatMessage({ id: 'common.button.login' })}
|
{intl.formatMessage({ id: 'common.button.login' })}
|
||||||
</Button>
|
</Button>
|
||||||
|
|||||||
@@ -139,7 +139,7 @@ const PasswordForm: React.FC = () => {
|
|||||||
htmlType="submit"
|
htmlType="submit"
|
||||||
type="primary"
|
type="primary"
|
||||||
block
|
block
|
||||||
style={{ height: '44px', fontSize: '14px', marginTop: 16 }}
|
style={{ height: '44px', fontSize: '14px', marginTop: 8 }}
|
||||||
>
|
>
|
||||||
{intl.formatMessage({ id: 'common.button.submit' })}
|
{intl.formatMessage({ id: 'common.button.submit' })}
|
||||||
</Button>
|
</Button>
|
||||||
|
|||||||
@@ -74,6 +74,10 @@ const Box = styled.div`
|
|||||||
min-height: 100vh;
|
min-height: 100vh;
|
||||||
.ant-form-item-label {
|
.ant-form-item-label {
|
||||||
line-height: 1;
|
line-height: 1;
|
||||||
|
padding-bottom: 4px;
|
||||||
|
}
|
||||||
|
.ant-form-item-label > label:after {
|
||||||
|
display: none;
|
||||||
}
|
}
|
||||||
.ant-form-item-label > label {
|
.ant-form-item-label > label {
|
||||||
height: auto !important;
|
height: auto !important;
|
||||||
|
|||||||
Reference in New Issue
Block a user