mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-27 06:41:18 +00:00
parent
51c8735682
commit
88fed73ea3
1 changed files with 4 additions and 0 deletions
4
ui/src/components/post-form.tsx
vendored
4
ui/src/components/post-form.tsx
vendored
|
@ -26,6 +26,7 @@ import {
|
||||||
archiveUrl,
|
archiveUrl,
|
||||||
mdToHtml,
|
mdToHtml,
|
||||||
debounce,
|
debounce,
|
||||||
|
isImage,
|
||||||
} from '../utils';
|
} from '../utils';
|
||||||
import * as autosize from 'autosize';
|
import * as autosize from 'autosize';
|
||||||
import { i18n } from '../i18next';
|
import { i18n } from '../i18next';
|
||||||
|
@ -193,6 +194,9 @@ export class PostForm extends Component<PostFormProps, PostFormState> {
|
||||||
<use xlinkHref="#icon-spinner"></use>
|
<use xlinkHref="#icon-spinner"></use>
|
||||||
</svg>
|
</svg>
|
||||||
)}
|
)}
|
||||||
|
{isImage(this.state.postForm.url) && (
|
||||||
|
<img src={this.state.postForm.url} class="img-fluid" />
|
||||||
|
)}
|
||||||
{this.state.crossPosts.length > 0 && (
|
{this.state.crossPosts.length > 0 && (
|
||||||
<>
|
<>
|
||||||
<div class="my-1 text-muted small font-weight-bold">
|
<div class="my-1 text-muted small font-weight-bold">
|
||||||
|
|
Loading…
Reference in a new issue