fix(web): unify skeleton loading animations on one pulse (#9448)

Co-authored-by: maria-rcks <[email protected]>
This commit is contained in:
mariaandmaria-rcks authored and GitHub committed 2026-09-03 13:30:07 -04:00
1 parent d4ba2a1f11
commit 21b9dda5af
4 files changed
+39 -45

No files matched your search

+1 -4
View File
@@ -3,10 +3,7 @@ import { cn } from "~/lib/utils";
function Skeleton({ className, ...props }: React.ComponentProps<"div">) {
return (
<div
className={cn(
"relative overflow-hidden rounded-sm bg-muted [--skeleton-highlight:--alpha(var(--color-white)/64%)] after:absolute after:inset-0 after:animate-skeleton after:bg-[linear-gradient(120deg,transparent_40%,var(--skeleton-highlight),transparent_60%)] motion-reduce:after:content-none dark:[--skeleton-highlight:--alpha(var(--color-white)/4%)]",
className,
)}
className={cn("rounded-sm bg-muted-foreground/15 motion-safe:animate-skeleton", className)}
data-slot="skeleton"
{...props}
/>