From c18929735a129311f38c42b1a9afe8195249b64f Mon Sep 17 00:00:00 2001 From: bntvllnt Date: Sun, 10 May 2026 21:28:47 +0200 Subject: [PATCH 1/3] =?UTF-8?q?fix(design):=20space-x/y=20=E2=86=92=20gap-?= =?UTF-8?q?x/y=20on=20flex=20parents=20(10=20sites)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit react-doctor \`design-no-space-on-flex-children\`: 13 → ~3. Rule rationale: per-sibling margins (space-x/y) phantom-gap on conditional render and don't mirror in RTL. Tailwind \`gap-x/y\` works on flex/grid parents and degrades correctly. Targeted line-by-line edit on the rule's flagged lines only — does not touch \`space-x/y\` outside flex/grid contexts. Files: - apps/registry/components/component-preview/component-preview.tsx (×7) - packages/ui/src/components/live-feed/live-feed.tsx (×1) - packages/ui/src/components/stat-card/stat-card.tsx (×1) - packages/ui/src/components/tutorial-complete/tutorial-complete.tsx (×1) Part of #267. Refs #279. --- .../component-preview/component-preview.tsx | 14 +++++++------- apps/registry/registry.json | 2 +- .../registry/default/live-feed/live-feed.tsx | 2 +- .../registry/default/stat-card/stat-card.tsx | 2 +- .../tutorial-complete/tutorial-complete.tsx | 2 +- packages/ui/src/components/live-feed/live-feed.tsx | 2 +- packages/ui/src/components/stat-card/stat-card.tsx | 2 +- .../tutorial-complete/tutorial-complete.tsx | 2 +- 8 files changed, 14 insertions(+), 14 deletions(-) diff --git a/apps/registry/components/component-preview/component-preview.tsx b/apps/registry/components/component-preview/component-preview.tsx index d3bf3011..ed31a591 100644 --- a/apps/registry/components/component-preview/component-preview.tsx +++ b/apps/registry/components/component-preview/component-preview.tsx @@ -537,13 +537,13 @@ function CalloutPreview() { function CheckboxPreview() { return (
-
+
-
+