Open source CapCut alternative.
TypeScript
refactor(site): every skeleton is the shadcn Skeleton
David Le6fa1c14a5e3d
diff --git a/site/src/components/ui/skeleton.tsx b/site/src/components/ui/skeleton.tsxindex 0118624f..3ec6be77 100644--- a/site/src/components/ui/skeleton.tsx+++ b/site/src/components/ui/skeleton.tsx@@ -4,7 +4,7 @@ function Skeleton({ className, ...props }: React.ComponentProps<"div">) {return (<divdata-slot="skeleton"- className={cn("animate-pulse rounded-md bg-muted", className)}+ className={cn("animate-pulse rounded-md bg-accent", className)}{...props}/>)diff --git a/site/src/cut/components/SessionGate.tsx b/site/src/cut/components/SessionGate.tsxindex a86f0ecc..239b64fc 100644--- a/site/src/cut/components/SessionGate.tsx+++ b/site/src/cut/components/SessionGate.tsx@@ -26,13 +26,12 @@ export function SessionGate({return <>{fallback ?? <SessionSkeleton />}</>;}-/** The shape of a loading app surface: a title over a body that fills the- * column it was given, so it reads the same in the home panes and the editor. */+/** The shape of a loading app surface: the title line alone, so the wait reads+ * as a pane about to fill rather than a slab of gray. */export function SessionSkeleton() {return (<div className="h-full w-full p-10"><Skeleton className="h-8 w-48" />- <Skeleton className="mt-6 h-[calc(100%-3.5rem)] w-full" /></div>);}diff --git a/site/src/cut/components/Timeline.tsx b/site/src/cut/components/Timeline.tsxindex da4cfed4..046059a6 100644--- a/site/src/cut/components/Timeline.tsx+++ b/site/src/cut/components/Timeline.tsx@@ -12,6 +12,7 @@ import {DropdownMenuTrigger,} from "@/components/ui/dropdown-menu";import { Slider } from "@/components/ui/slider";+import { Skeleton } from "@/components/ui/skeleton";import {clearAssetDrag,clearElementDrag,@@ -3988,7 +3989,7 @@ function Filmstrip({// pulsing skeleton fills the box until the strip can draw real frames.if (!frames.length) {return (- <div className="tl-filmstrip-skeleton pointer-events-none absolute inset-0 animate-pulse bg-muted" />+ <Skeleton className="tl-filmstrip-skeleton pointer-events-none absolute inset-0 rounded-none" />);}return (