diff --git a/web/components/service/details/service-details-overview.tsx b/web/components/service/details/service-details-overview.tsx index 028d4f6..479fc5d 100644 --- a/web/components/service/details/service-details-overview.tsx +++ b/web/components/service/details/service-details-overview.tsx @@ -19,7 +19,6 @@ import { YAxis, } from "recharts"; import useSWR from "swr"; -import { LocalDate } from "@/components/core/local-date"; import { useService } from "@/components/service/service-layout-client"; import { Badge } from "@/components/ui/badge"; import { Card } from "@/components/ui/card"; @@ -237,17 +236,17 @@ function ServiceMetricsPanel({ ); return (
-
+
{isLoading ? ( -
+
) : ( -
+
{summaryItems.map((item) => ( -
+

{item.value}

@@ -257,18 +256,11 @@ function ServiceMetricsPanel({
)}
-
- {stats ? ( -

- -

- ) : null} - -
+
@@ -386,7 +378,7 @@ function ServiceChartModeToggle({ ]; return ( -
+
{options.map((option) => { const isSelected = value === option.value; @@ -398,7 +390,7 @@ function ServiceChartModeToggle({ disabled={disabled} onClick={() => onChange(option.value)} className={cn( - "rounded-[5px] px-2 py-0.5 text-xs font-medium transition-colors", + "flex-1 rounded-[5px] px-2 py-0.5 text-xs font-medium transition-colors sm:flex-none", isSelected ? "bg-background text-foreground shadow-sm" : "text-muted-foreground hover:text-foreground",