diff options
-rw-r--r-- | source/features/bugs-tab.tsx | 4 | ||||
-rw-r--r-- | source/features/releases-tab.tsx | 4 |
2 files changed, 5 insertions, 3 deletions
diff --git a/source/features/bugs-tab.tsx b/source/features/bugs-tab.tsx index bdd34ddc..2cb64b73 100644 --- a/source/features/bugs-tab.tsx +++ b/source/features/bugs-tab.tsx @@ -93,7 +93,9 @@ async function init(): Promise<void | false> { // Update bugs count try { - bugsCounter.textContent = abbreviateNumber(await countPromise); + const bugCount = await countPromise; + bugsCounter.textContent = abbreviateNumber(bugCount); + bugsCounter.title = bugCount > 999 ? String(bugCount) : ''; } catch (error: unknown) { bugsCounter.remove(); features.error(__filebasename, error); diff --git a/source/features/releases-tab.tsx b/source/features/releases-tab.tsx index 89cda3f3..1fe19554 100644 --- a/source/features/releases-tab.tsx +++ b/source/features/releases-tab.tsx @@ -78,7 +78,7 @@ async function init(): Promise<false | void> { > <TagIcon className="UnderlineNav-octicon"/> <span data-content="Releases">Releases</span> - {count && <span className="Counter">{abbreviateNumber(count)}</span>} + {count && <span className="Counter" title={count > 999 ? String(count) : ''}>{abbreviateNumber(count)}</span>} </a> ); @@ -118,7 +118,7 @@ async function init(): Promise<false | void> { <a href={buildRepoURL('releases')} className="reponav-item" data-hotkey="g r"> <TagIcon/> <span> Releases </span> - {count && <span className="Counter">{abbreviateNumber(count)}</span>} + {count && <span className="Counter" title={count > 999 ? String(count) : ''}>{abbreviateNumber(count)}</span>} </a> ); |