Fix display of auth modal. Re #2262. (#2265)

This commit is contained in:
Matthew Heller 2022-10-26 16:35:46 -05:00 committed by GitHub
parent befe7c3fd2
commit 125343808d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 16 deletions

View file

@ -139,12 +139,7 @@ export const FediAuthModal: FC<FediAuthModalProps> = ({
value={account}
placeholder="youraccount@yourserver.com"
status={!valid && account.length > 0 ? 'error' : undefined}
onPressEnter={submitAccountPressed}
enterButton={
<Button onClick={submitAccountPressed} disabled={!valid}>
Authenticate with Fediverse
</Button>
}
onSearch={submitAccountPressed}
/>
</>
);

View file

@ -1,4 +1,4 @@
import { Alert, Button, Input, Space, Spin, Collapse, Typography } from 'antd';
import { Alert, Input, Space, Spin, Collapse, Typography } from 'antd';
import React, { FC, useState } from 'react';
import isValidURL from '../../../utils/urls';
@ -124,12 +124,7 @@ export const IndieAuthModal: FC<IndieAuthModalProps> = ({
value={host}
placeholder="yoursite.com"
status={!valid && host.length > 0 ? 'error' : undefined}
onPressEnter={submitButtonPressed}
enterButton={
<Button onClick={submitButtonPressed} disabled={!valid}>
Authenticate with your domain
</Button>
}
onSearch={submitButtonPressed}
/>
<Collapse ghost>

View file

@ -83,6 +83,4 @@ Modal.defaultProps = {
handleOk: undefined,
handleCancel: undefined,
afterClose: undefined,
height: '40vh',
width: '70%',
};

View file

@ -118,7 +118,9 @@ DROPDOWN
.ant-modal-title {
color: var(--theme-color-components-modal-header-text);
}
.ant-modal-body {
overflow: scroll;
}
.ant-modal {
color: var(--theme-color-components-text-on-light);
h1 {