@@ -139,12 +139,7 @@ export const FediAuthModal: FC<FediAuthModalProps> = ({
|
|||||||
value={account}
|
value={account}
|
||||||
placeholder="youraccount@yourserver.com"
|
placeholder="youraccount@yourserver.com"
|
||||||
status={!valid && account.length > 0 ? 'error' : undefined}
|
status={!valid && account.length > 0 ? 'error' : undefined}
|
||||||
onPressEnter={submitAccountPressed}
|
onSearch={submitAccountPressed}
|
||||||
enterButton={
|
|
||||||
<Button onClick={submitAccountPressed} disabled={!valid}>
|
|
||||||
Authenticate with Fediverse
|
|
||||||
</Button>
|
|
||||||
}
|
|
||||||
/>
|
/>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -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 React, { FC, useState } from 'react';
|
||||||
import isValidURL from '../../../utils/urls';
|
import isValidURL from '../../../utils/urls';
|
||||||
|
|
||||||
@@ -124,12 +124,7 @@ export const IndieAuthModal: FC<IndieAuthModalProps> = ({
|
|||||||
value={host}
|
value={host}
|
||||||
placeholder="yoursite.com"
|
placeholder="yoursite.com"
|
||||||
status={!valid && host.length > 0 ? 'error' : undefined}
|
status={!valid && host.length > 0 ? 'error' : undefined}
|
||||||
onPressEnter={submitButtonPressed}
|
onSearch={submitButtonPressed}
|
||||||
enterButton={
|
|
||||||
<Button onClick={submitButtonPressed} disabled={!valid}>
|
|
||||||
Authenticate with your domain
|
|
||||||
</Button>
|
|
||||||
}
|
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<Collapse ghost>
|
<Collapse ghost>
|
||||||
|
|||||||
@@ -83,6 +83,4 @@ Modal.defaultProps = {
|
|||||||
handleOk: undefined,
|
handleOk: undefined,
|
||||||
handleCancel: undefined,
|
handleCancel: undefined,
|
||||||
afterClose: undefined,
|
afterClose: undefined,
|
||||||
height: '40vh',
|
|
||||||
width: '70%',
|
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -118,7 +118,9 @@ DROPDOWN
|
|||||||
.ant-modal-title {
|
.ant-modal-title {
|
||||||
color: var(--theme-color-components-modal-header-text);
|
color: var(--theme-color-components-modal-header-text);
|
||||||
}
|
}
|
||||||
|
.ant-modal-body {
|
||||||
|
overflow: scroll;
|
||||||
|
}
|
||||||
.ant-modal {
|
.ant-modal {
|
||||||
color: var(--theme-color-components-text-on-light);
|
color: var(--theme-color-components-text-on-light);
|
||||||
h1 {
|
h1 {
|
||||||
|
|||||||
Reference in New Issue
Block a user