mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05:00
Hide sorting form when there is one or zero comments (#21513)
REF PLG-250
This commit is contained in:
parent
599a526dd7
commit
d32cae4284
1 changed files with 7 additions and 5 deletions
|
@ -56,11 +56,13 @@ const Content = () => {
|
|||
</section>
|
||||
)}
|
||||
</div>
|
||||
<div className="z-20 mb-7 mt-3">
|
||||
<span className="flex items-center gap-1.5 text-sm font-medium text-neutral-900 dark:text-neutral-100">
|
||||
{t('Sort by')}: <SortingForm/>
|
||||
</span>
|
||||
</div>
|
||||
{commentCount > 1 && (
|
||||
<div className="z-20 mb-7 mt-3">
|
||||
<span className="flex items-center gap-1.5 text-sm font-medium text-neutral-900 dark:text-neutral-100">
|
||||
{t('Sort by')}: <SortingForm/>
|
||||
</span>
|
||||
</div>
|
||||
)}
|
||||
<div className={!pagination ? 'z-10 mt-4' : 'z-10'} data-test="comment-elements">
|
||||
{commentsElements}
|
||||
</div>
|
||||
|
|
Loading…
Add table
Reference in a new issue