diff --git a/src/components/ApiCard.tsx b/src/components/ApiCard.tsx index 004a79a..5974a3b 100644 --- a/src/components/ApiCard.tsx +++ b/src/components/ApiCard.tsx @@ -24,7 +24,7 @@ import KbdHint from "./KbdHint"; import WhyApi from "./WhyApi"; import { colorFromId } from "../utils/colorFromId"; import { ClockIcon, BoltIcon } from "./icons"; -import StatusBadge from "./StatusBadge"; + // ─── Skeleton ──────────────────────────────────────────────────────────────── @@ -37,12 +37,12 @@ export function ApiCardSkeleton({ density = "comfortable" }: { density?: "comfor aria-busy="true" aria-label="Loading API" style={{ - padding: isCompact ? 10 : 12, + padding: isCompact ? "var(--mkt-card-compact-padding, 10px)" : "var(--mkt-card-padding, 12px)", display: "flex", flexDirection: "column", - minHeight: isCompact ? 188 : 220, - gap: isCompact ? 6 : 8, - border: "1px solid rgba(255,255,255,0.03)", + minHeight: isCompact ? "var(--mkt-card-compact-min-height, 188px)" : "var(--mkt-card-min-height, 220px)", + gap: isCompact ? "var(--mkt-card-compact-gap, 6px)" : "var(--mkt-card-gap, 8px)", + border: "1px solid var(--line, rgba(255,255,255,0.05))", pointerEvents: "none", position: "relative", }} @@ -58,7 +58,7 @@ export function ApiCardSkeleton({ density = "comfortable" }: { density?: "comfor left: 0, width: 4, height: "100%", - borderRadius: "var(--radius-lg) 0 0 var(--radius-lg)", + borderRadius: "var(--radius-lg, 12px) 0 0 var(--radius-lg, 12px)", background: "color-mix(in srgb, var(--accent) 12%, transparent)", }} /> @@ -86,8 +86,8 @@ export function ApiCardSkeleton({ density = "comfortable" }: { density?: "comfor
-
-
+
+
@@ -108,7 +108,7 @@ export function ApiCardSkeleton({ density = "comfortable" }: { density?: "comfor display: "flex", flexDirection: "column", alignItems: "flex-end", - gap: "var(--mkt-space-sm)" + gap: "var(--mkt-space-sm, 4px)" }} > @@ -122,8 +122,7 @@ export function ApiCardSkeleton({ density = "comfortable" }: { density?: "comfor
- {/* WhyApi placeholder — matches the real card's rationale section - that appears in comfortable mode. */} + {/* WhyApi placeholder — matches the real card's rationale section in comfortable mode */} {!isCompact && (
@@ -131,8 +130,7 @@ export function ApiCardSkeleton({ density = "comfortable" }: { density?: "comfor
)} - {/* Sparkline section — matches the real card's 24h sparkline - that appears between tags and stats. */} + {/* Sparkline section placeholder */}