From ca15e03701053c63b654eff1d45c52a9dc3ed194 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Thu, 25 Feb 2021 06:04:42 -0500 Subject: [PATCH] =?UTF-8?q?Add=20commas=20to=20"[x]=20more=E2=80=A6"=20cou?= =?UTF-8?q?nt=20in=20notes=20pane?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- chrome/content/zotero/components/itemPane/notesList.jsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/chrome/content/zotero/components/itemPane/notesList.jsx b/chrome/content/zotero/components/itemPane/notesList.jsx index a3e26210a9..07bde185da 100644 --- a/chrome/content/zotero/components/itemPane/notesList.jsx +++ b/chrome/content/zotero/components/itemPane/notesList.jsx @@ -80,7 +80,11 @@ const NotesList = forwardRef(({ onClick, onNewChild, onNewStandalone }, ref) => {!allNotes.length && !searching &&
{Zotero.getString('pane.context.noNotes')}
} {(expanded ? allNotes : allNotes.slice(0, MAX_ALL_NOTES)).map(note => onClick(note.id)}/>)} - {!expanded && allNotes.length > MAX_ALL_NOTES &&
{Zotero.getString('general.numMore', [allNotes.length - MAX_ALL_NOTES])}
} + {!expanded && allNotes.length > MAX_ALL_NOTES + &&
{ + Zotero.getString('general.numMore', Zotero.Utilities.numberFormat([allNotes.length - MAX_ALL_NOTES], 0)) + }
+ } } );