fix: refine widget modernization

This commit is contained in:
Thomas Camlong committed 2026-08-01 21:45:01 +02:00
1 parent d421046d15
commit b28beec2c6
50 files changed
+292 -386

No files matched your search

@@ -30,7 +30,10 @@ export default function ImmichServerStatsWidget({
if (!stats) return <WidgetEmptyState />;
const statsContent = (
<SimpleGrid cols={displayMode === "advanced" ? 4 : width >= 320 ? 2 : 1} spacing="sm">
<SimpleGrid
cols={displayMode === "advanced" ? (width >= 720 ? 4 : width >= 360 ? 2 : 1) : width >= 320 ? 2 : 1}
spacing="sm"
>
{options.showUsers && (
<StatItem icon={<IconUsers size={20} />} label={t("widget.immich-serverStats.users")} value={stats.userCount} />
)}