Browse Source

Fix text input width. Closes #2184

pull/2272/head
Gabe Kangas 3 years ago
parent
commit
0e8f14a58a
No known key found for this signature in database
GPG Key ID: 9A56337728BC81EA
  1. 20
      web/components/ComposeFederatedPost.tsx

20
web/components/ComposeFederatedPost.tsx

@ -1,6 +1,6 @@ @@ -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 @@ -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>
);
};

Loading…
Cancel
Save