Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

fix(ai-gateway): clip analytics loading skeletons to the widget content area (#19497)

Tobias Wochingerda5066a4fba2
diff --git a/web/src/features/ai-gateway/components/GatewayAnalyticsPage/components/GatewayAnalyticsWidgetCard/GatewayAnalyticsWidgetCard.tsx b/web/src/features/ai-gateway/components/GatewayAnalyticsPage/components/GatewayAnalyticsWidgetCard/GatewayAnalyticsWidgetCard.tsx
index 180ef3c17c..24987657c8 100644
--- a/web/src/features/ai-gateway/components/GatewayAnalyticsPage/components/GatewayAnalyticsWidgetCard/GatewayAnalyticsWidgetCard.tsx
+++ b/web/src/features/ai-gateway/components/GatewayAnalyticsPage/components/GatewayAnalyticsWidgetCard/GatewayAnalyticsWidgetCard.tsx
@@ -56,6 +56,9 @@ export function GatewayAnalyticsWidgetCard({
cardContentClassName="min-h-0"
>
<WidgetContent
+ // The loading skeleton has a min height taller than the small tiles;
+ // clip it to the content area like dashboard widgets do.
+ className="overflow-hidden"
projectId={projectId}
query={query}
version="v2"