mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-23 04:41:19 +00:00
Making comment, post, and message preview a card. Fixes #817
This commit is contained in:
parent
ef2adcc95d
commit
c1dbeb43c9
3 changed files with 3 additions and 3 deletions
2
ui/src/components/comment-form.tsx
vendored
2
ui/src/components/comment-form.tsx
vendored
|
@ -138,7 +138,7 @@ export class CommentForm extends Component<CommentFormProps, CommentFormState> {
|
||||||
/>
|
/>
|
||||||
{this.state.previewMode && (
|
{this.state.previewMode && (
|
||||||
<div
|
<div
|
||||||
className="md-div"
|
className="card card-body md-div"
|
||||||
dangerouslySetInnerHTML={mdToHtml(
|
dangerouslySetInnerHTML={mdToHtml(
|
||||||
this.state.commentForm.content
|
this.state.commentForm.content
|
||||||
)}
|
)}
|
||||||
|
|
2
ui/src/components/post-form.tsx
vendored
2
ui/src/components/post-form.tsx
vendored
|
@ -284,7 +284,7 @@ export class PostForm extends Component<PostFormProps, PostFormState> {
|
||||||
/>
|
/>
|
||||||
{this.state.previewMode && (
|
{this.state.previewMode && (
|
||||||
<div
|
<div
|
||||||
className="md-div"
|
className="card card-body md-div"
|
||||||
dangerouslySetInnerHTML={mdToHtml(this.state.postForm.body)}
|
dangerouslySetInnerHTML={mdToHtml(this.state.postForm.body)}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
|
|
2
ui/src/components/private-message-form.tsx
vendored
2
ui/src/components/private-message-form.tsx
vendored
|
@ -154,7 +154,7 @@ export class PrivateMessageForm extends Component<
|
||||||
/>
|
/>
|
||||||
{this.state.previewMode && (
|
{this.state.previewMode && (
|
||||||
<div
|
<div
|
||||||
className="md-div"
|
className="card card-body md-div"
|
||||||
dangerouslySetInnerHTML={mdToHtml(
|
dangerouslySetInnerHTML={mdToHtml(
|
||||||
this.state.privateMessageForm.content
|
this.state.privateMessageForm.content
|
||||||
)}
|
)}
|
||||||
|
|
Loading…
Reference in a new issue