feat: adding review styling

This commit is contained in:
Chubby Granny Chaser
2025-10-12 18:40:05 +01:00
parent 14204f1fbe
commit 5877c8c798
2 changed files with 11 additions and 3 deletions

View File

@@ -60,4 +60,3 @@ const getHydraDeckyPluginInfo = async (
};
registerEvent("getHydraDeckyPluginInfo", getHydraDeckyPluginInfo);

View File

@@ -233,9 +233,18 @@ export function Sidebar() {
{t("rating_count")}
</p>
<StarRating
rating={stats?.averageScore === 0 ? null : stats?.averageScore ?? null}
rating={
stats?.averageScore === 0
? null
: (stats?.averageScore ?? null)
}
size={16}
showCalculating={!!(stats && (stats.averageScore === null || stats.averageScore === 0))}
showCalculating={
!!(
stats &&
(stats.averageScore === null || stats.averageScore === 0)
)
}
calculatingText={t("calculating", { ns: "game_card" })}
hideIcon={true}
/>