|
@@ -66,7 +66,7 @@ const SettingsDomain: FC = () => {
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
return (
|
|
return (
|
|
|
- <Col alignItems="flex-start">
|
|
|
|
|
|
|
+ <Col alignItems="flex-start" maxWidth="100%">
|
|
|
<H2 mb={4} bold>
|
|
<H2 mb={4} bold>
|
|
|
Custom domain
|
|
Custom domain
|
|
|
</H2>
|
|
</H2>
|
|
@@ -79,7 +79,7 @@ const SettingsDomain: FC = () => {
|
|
|
via form below:
|
|
via form below:
|
|
|
</Text>
|
|
</Text>
|
|
|
{domains.length ? (
|
|
{domains.length ? (
|
|
|
- <Table my={3}>
|
|
|
|
|
|
|
+ <Table my={3} scrollWidth="550px">
|
|
|
<thead>
|
|
<thead>
|
|
|
<tr>
|
|
<tr>
|
|
|
<Th width={2 / 5}>Domain</Th>
|
|
<Th width={2 / 5}>Domain</Th>
|
|
@@ -119,37 +119,45 @@ const SettingsDomain: FC = () => {
|
|
|
onSubmit={onSubmit}
|
|
onSubmit={onSubmit}
|
|
|
width={1}
|
|
width={1}
|
|
|
as="form"
|
|
as="form"
|
|
|
- my={4}
|
|
|
|
|
|
|
+ my={[3, 4]}
|
|
|
>
|
|
>
|
|
|
- <Flex width={1}>
|
|
|
|
|
- <Col mr={2} flex="1 1 auto">
|
|
|
|
|
- <Text {...label("customDomain")} as="label" mb={3} bold>
|
|
|
|
|
|
|
+ <Flex width={1} flexDirection={["column", "row"]}>
|
|
|
|
|
+ <Col mr={[0, 2]} mb={[3, 0]} flex="1 1 auto">
|
|
|
|
|
+ <Text
|
|
|
|
|
+ {...label("customDomain")}
|
|
|
|
|
+ as="label"
|
|
|
|
|
+ mb={[2, 3]}
|
|
|
|
|
+ fontSize={[15, 16]}
|
|
|
|
|
+ bold
|
|
|
|
|
+ >
|
|
|
Domain
|
|
Domain
|
|
|
</Text>
|
|
</Text>
|
|
|
<TextInput
|
|
<TextInput
|
|
|
{...text("customDomain")}
|
|
{...text("customDomain")}
|
|
|
placeholder="example.com"
|
|
placeholder="example.com"
|
|
|
- height={44}
|
|
|
|
|
- pl={24}
|
|
|
|
|
- pr={24}
|
|
|
|
|
|
|
+ maxWidth="240px"
|
|
|
required
|
|
required
|
|
|
/>
|
|
/>
|
|
|
</Col>
|
|
</Col>
|
|
|
- <Col ml={2} flex="1 1 auto">
|
|
|
|
|
- <Text {...label("homepage")} as="label" mb={3} bold>
|
|
|
|
|
|
|
+ <Col ml={[0, 2]} flex="1 1 auto">
|
|
|
|
|
+ <Text
|
|
|
|
|
+ {...label("homepage")}
|
|
|
|
|
+ as="label"
|
|
|
|
|
+ mb={[2, 3]}
|
|
|
|
|
+ fontSize={[15, 16]}
|
|
|
|
|
+ bold
|
|
|
|
|
+ >
|
|
|
Homepage (optional)
|
|
Homepage (optional)
|
|
|
</Text>
|
|
</Text>
|
|
|
<TextInput
|
|
<TextInput
|
|
|
{...text("homepage")}
|
|
{...text("homepage")}
|
|
|
placeholder="Homepage URL"
|
|
placeholder="Homepage URL"
|
|
|
flex="1 1 auto"
|
|
flex="1 1 auto"
|
|
|
- height={44}
|
|
|
|
|
- pl={24}
|
|
|
|
|
- pr={24}
|
|
|
|
|
|
|
+ maxWidth="240px"
|
|
|
/>
|
|
/>
|
|
|
</Col>
|
|
</Col>
|
|
|
</Flex>
|
|
</Flex>
|
|
|
- <Button type="submit" color="purple" mt={3} disabled={loading}>
|
|
|
|
|
|
|
+ <Button type="submit" color="purple" mt={[24, 3]} disabled={loading}>
|
|
|
<Icon name={loading ? "spinner" : "plus"} mr={2} stroke="white" />
|
|
<Icon name={loading ? "spinner" : "plus"} mr={2} stroke="white" />
|
|
|
{loading ? "Setting..." : "Set domain"}
|
|
{loading ? "Setting..." : "Set domain"}
|
|
|
</Button>
|
|
</Button>
|