Fix text input width. Closes #2184

This commit is contained in:
Gabe Kangas 2022-10-28 22:39:20 -07:00
parent e0b7ae5b3a
commit 0e8f14a58a
No known key found for this signature in database
GPG Key ID: 9A56337728BC81EA

View File

@ -1,6 +1,6 @@
import React, { FC, useState } from 'react';
import { Button, Space, Input, Modal } from 'antd';
import { Button, Input, Modal } from 'antd';
import { STATUS_ERROR, STATUS_SUCCESS } from '../utils/input-statuses';
import { fetchData, FEDERATION_MESSAGE_SEND } from '../utils/apis';
@ -67,16 +67,14 @@ export const ComposeFederatedPost: FC<ComposeFederatedPostProps> = ({ visible, h
</Button>,
]}
>
<Space id="fediverse-post-container" direction="vertical">
<TextArea
placeholder="Tell the world about your streaming plans..."
size="large"
showCount
maxLength={500}
style={{ height: '150px' }}
onChange={handleEditorChange}
/>
</Space>
<TextArea
placeholder="Tell the world about your streaming plans..."
size="large"
showCount
maxLength={500}
style={{ height: '150px', width: '100%' }}
onChange={handleEditorChange}
/>
</Modal>
);
};