mirror of
https://github.com/LemmyNet/lemmy
synced 2024-11-17 09:25:50 +00:00
parent
dfd27ea85c
commit
e5a9ccaff1
4
ui/src/components/post-form.tsx
vendored
4
ui/src/components/post-form.tsx
vendored
@ -26,6 +26,7 @@ import {
|
||||
archiveUrl,
|
||||
mdToHtml,
|
||||
debounce,
|
||||
isImage,
|
||||
} from '../utils';
|
||||
import * as autosize from 'autosize';
|
||||
import { i18n } from '../i18next';
|
||||
@ -193,6 +194,9 @@ export class PostForm extends Component<PostFormProps, PostFormState> {
|
||||
<use xlinkHref="#icon-spinner"></use>
|
||||
</svg>
|
||||
)}
|
||||
{isImage(this.state.postForm.url) && (
|
||||
<img src={this.state.postForm.url} class="img-fluid" />
|
||||
)}
|
||||
{this.state.crossPosts.length > 0 && (
|
||||
<>
|
||||
<div class="my-1 text-muted small font-weight-bold">
|
||||
|
Loading…
Reference in New Issue
Block a user