0
Fork 0
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:
Sanne de Vries 2024-11-04 12:33:26 +01:00 committed by GitHub
parent 599a526dd7
commit d32cae4284
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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>