fix(web): show skeleton in file tree header while workspace path loads (#704)

This commit is contained in:
Carlos Florêncio
2026-04-25 21:42:59 +01:00
committed by GitHub
parent 7a2160f1f9
commit b04967bf70
@@ -11,6 +11,7 @@ import {
IconPlus,
} from "@tabler/icons-react";
import { Tooltip, TooltipContent, TooltipTrigger } from "@kandev/ui/tooltip";
import { Skeleton } from "@kandev/ui/skeleton";
import { cn } from "@/lib/utils";
import { PanelHeaderBarSplit } from "./panel-primitives";
@@ -93,9 +94,13 @@ export function FileBrowserToolbar({
</TooltipTrigger>
<TooltipContent>Copy workspace path</TooltipContent>
</Tooltip>
<span className="min-w-0 truncate text-xs font-medium text-muted-foreground">
{displayPath}
</span>
{displayPath ? (
<span className="min-w-0 truncate text-xs font-medium text-muted-foreground">
{displayPath}
</span>
) : (
<Skeleton className="h-3 w-24" />
)}
</>
}
right={