fix: display the number of documents in mobile view (#837)

This PR fixes #782.
It now displays the document count on mobile view.
This commit is contained in:
Fatuma Abdullahi
2024-01-17 03:10:28 +03:00
committed by GitHub
parent 560352492d
commit 1bc885478d

View File

@ -88,7 +88,7 @@ export default async function DocumentsPage({ searchParams = {} }: DocumentsPage
<DocumentStatus status={value} />
{value !== ExtendedDocumentStatus.ALL && (
<span className="ml-1 hidden opacity-50 md:inline-block">
<span className="ml-1 inline-block opacity-50">
{Math.min(stats[value], 99)}
{stats[value] > 99 && '+'}
</span>