From 03d537328a71374c6305e1b761926b2b2dbd9742 Mon Sep 17 00:00:00 2001 From: CaIon Date: Tue, 12 May 2026 16:13:14 +0800 Subject: [PATCH] fix(default): improve performance health panel layout --- .../overview/performance-health-panel.tsx | 34 ++++++++----------- 1 file changed, 14 insertions(+), 20 deletions(-) diff --git a/web/default/src/features/dashboard/components/overview/performance-health-panel.tsx b/web/default/src/features/dashboard/components/overview/performance-health-panel.tsx index bfe0f500..bcbe3e1b 100644 --- a/web/default/src/features/dashboard/components/overview/performance-health-panel.tsx +++ b/web/default/src/features/dashboard/components/overview/performance-health-panel.tsx @@ -103,8 +103,7 @@ export function PerformanceHealthPanel() { -
- {/* KPI metrics */} +
- {/* Top models */} -
- - {t('Top models by traffic')} - - {loading ? ( -
- {Array.from({ length: 3 }).map((_, i) => ( - - ))} -
- ) : !hasData ? ( - - {t('No performance data available')} + {loading ? ( +
+ {Array.from({ length: 3 }).map((_, i) => ( + + ))} +
+ ) : hasData && ( +
+ + {t('Top models by traffic')} - ) : ( -
+
{topModels.map((model) => (
))}
- )} -
+
+ )}
)