From 486e2aae830d396ea6418cd54db61c0482152948 Mon Sep 17 00:00:00 2001 From: Zijian Zhang <35801754+futrime@users.noreply.github.com> Date: Sun, 15 Nov 2026 14:33:05 +0800 Subject: [PATCH] feat(mods): show both release downloads and stars on every row Rows showed the downloads, or the stars only when a mod had no downloads. They now show both, each when above zero; the Popularity sort is unchanged. --- mods/README.md | 4 ++-- mods/src/components/project-row.tsx | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/mods/README.md b/mods/README.md index ec56a9e..eab36a4 100644 --- a/mods/README.md +++ b/mods/README.md @@ -235,8 +235,8 @@ supporting the next version. The build log prints the fitted model. is used, from its release downloads (installs: lip and the launchers download release files) and its stars, each as ln(1 + n) standardised over the catalogue (one row per repository), averaged. A mod whose releases have no files has -unknown downloads, not none: its stars stand for both. Rows show the downloads -(the stars when there are none) and the tooltip both. +unknown downloads, not none: its stars stand for both. Rows show both counts +(each only when above zero), as does the tooltip. ### Tags diff --git a/mods/src/components/project-row.tsx b/mods/src/components/project-row.tsx index a3167e8..fb85913 100644 --- a/mods/src/components/project-row.tsx +++ b/mods/src/components/project-row.tsx @@ -173,7 +173,8 @@ export function ProjectRow({ entry, eager }: ProjectRowProps) { {t.downloadsExact(formatNumber(entry.downloads!, locale))} - ) : entry.stars > 0 ? ( + ) : null} + {entry.stars > 0 ? (