From 2be23d0244f1f95c5d5fcac2e442a26d3d6ca773 Mon Sep 17 00:00:00 2001 From: Fedor Katurov Date: Thu, 25 Jun 2020 17:20:11 +0700 Subject: [PATCH] fixed comment blank placeholder --- src/components/comment/CommentTextBlock/index.tsx | 2 +- .../comment/CommentTextBlock/styles.scss | 15 ++++++++++----- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/src/components/comment/CommentTextBlock/index.tsx b/src/components/comment/CommentTextBlock/index.tsx index 9c9e07af..81714657 100644 --- a/src/components/comment/CommentTextBlock/index.tsx +++ b/src/components/comment/CommentTextBlock/index.tsx @@ -9,7 +9,7 @@ const CommentTextBlock: FC = ({ block }) => {
${block.content}

`, + __html: `

${block.content}

`, }} /> ); diff --git a/src/components/comment/CommentTextBlock/styles.scss b/src/components/comment/CommentTextBlock/styles.scss index 0ad9ddc4..caab6c62 100644 --- a/src/components/comment/CommentTextBlock/styles.scss +++ b/src/components/comment/CommentTextBlock/styles.scss @@ -26,10 +26,15 @@ :global(.green) { color: $wisegreen; } -} -.blank { - display: inline-flex; - height: 1em; - width: 150px; + &:last-child { + p { + &::after { + content: ''; + display: inline-flex; + height: 1em; + width: 150px; + } + } + } }