mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-03-14 09:58:51 +01:00
No need render div if no content
This commit is contained in:
parent
810596b7cf
commit
f98306ed18
1 changed files with 58 additions and 56 deletions
|
@ -1370,6 +1370,7 @@ function Status({
|
||||||
</button>
|
</button>
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
|
{!!content && (
|
||||||
<div class="content" ref={contentRef} data-read-more={readMoreText}>
|
<div class="content" ref={contentRef} data-read-more={readMoreText}>
|
||||||
<div
|
<div
|
||||||
lang={language}
|
lang={language}
|
||||||
|
@ -1427,6 +1428,7 @@ function Status({
|
||||||
/>
|
/>
|
||||||
<QuoteStatuses id={id} instance={instance} level={quoted} />
|
<QuoteStatuses id={id} instance={instance} level={quoted} />
|
||||||
</div>
|
</div>
|
||||||
|
)}
|
||||||
{!!poll && (
|
{!!poll && (
|
||||||
<Poll
|
<Poll
|
||||||
lang={language}
|
lang={language}
|
||||||
|
|
Loading…
Reference in a new issue