diff --git a/components/header.tsx b/components/header.tsx index b98a9628..792ad0bb 100644 --- a/components/header.tsx +++ b/components/header.tsx @@ -4,6 +4,7 @@ import { ClickHouseHost } from '@/components/clickhouse-host' import { Menu } from '@/components/menu/menu' import { ReloadButton } from '@/components/reload-button' import { Suspense } from 'react' +import { SingleLineSkeleton } from './skeleton' const TITLE = process.env.NEXT_PUBLIC_TITLE || 'ClickHouse Monitoring' const TITLE_SHORT = process.env.NEXT_PUBLIC_TITLE_SHORT || 'Monitoring' @@ -32,7 +33,9 @@ export function Header() {
- + } + > diff --git a/components/skeleton.tsx b/components/skeleton.tsx index fc47e9e8..abde7f30 100644 --- a/components/skeleton.tsx +++ b/components/skeleton.tsx @@ -1,4 +1,5 @@ import { Skeleton } from '@/components/ui/skeleton' +import { cn } from '@/lib/utils' export function ChartSkeleton() { return ( @@ -35,11 +36,20 @@ export function TableSkeleton({ ) } -export function SingleLineSkeleton() { +export function SingleLineSkeleton({ + className = 'w-[500px]', +}: { + className?: string +}) { return ( -
- - +
+ +
) }