From 3701302b84ec3754d825dc8206a3d6d7b52e5f13 Mon Sep 17 00:00:00 2001 From: ChloeGarciaMillerand Date: Wed, 3 Jun 2026 09:33:17 +0200 Subject: [PATCH] fix(design system documentation): remove unwanted horizontal scroll caused by separator styles (#46584) ## I have read the [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) file. YES ## What kind of change does this PR introduce? Fix the design system documentation in UI Patterns/ Form section. ## What is the current behavior? The form panels have horizontal scrolling due to the style of the separators 260602_before The MultiSelector components originally used a complex style, which has been simplified without affecting the visual appearance. ## What is the new behavior? The style of the MultiSelector components has been simplified. There is no longer any horizontal scrolling in the form panel. 260602_after ## Additional context The style has not been changed. ## Summary by CodeRabbit * **Style** * Standardized separator layout in the form patterns side panel to use full-width spacing, improving visual consistency and alignment across panels. * Relaxed the multi-selector trigger width constraint so it now fills available space, allowing more flexible and cohesive layout behavior without altering form behavior or validation. --------- Co-authored-by: Gildas Garcia <1122076+djhi@users.noreply.github.com> --- .../example/form-patterns-sidepanel.tsx | 32 +++++++++---------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/apps/design-system/registry/default/example/form-patterns-sidepanel.tsx b/apps/design-system/registry/default/example/form-patterns-sidepanel.tsx index 15b907d6195..6c729295442 100644 --- a/apps/design-system/registry/default/example/form-patterns-sidepanel.tsx +++ b/apps/design-system/registry/default/example/form-patterns-sidepanel.tsx @@ -176,7 +176,7 @@ export default function FormPatternsSidePanel() { /> - + {/* Password Input */} @@ -197,7 +197,7 @@ export default function FormPatternsSidePanel() { /> - + {/* Copyable Input */} @@ -225,7 +225,7 @@ export default function FormPatternsSidePanel() { /> - + {/* Number Input */} @@ -246,7 +246,7 @@ export default function FormPatternsSidePanel() { /> - + {/* Input with Units */} @@ -272,7 +272,7 @@ export default function FormPatternsSidePanel() { /> - + {/* Textarea */} @@ -298,7 +298,7 @@ export default function FormPatternsSidePanel() { /> - + {/* Icon Upload */} @@ -366,7 +366,7 @@ export default function FormPatternsSidePanel() { /> - + {/* File Upload */} @@ -459,7 +459,7 @@ export default function FormPatternsSidePanel() { /> - + {/* Switch */} @@ -555,7 +555,7 @@ export default function FormPatternsSidePanel() { - + {/* Select */} @@ -585,7 +585,7 @@ export default function FormPatternsSidePanel() { /> - + {/* Multi-Select */} @@ -611,7 +611,7 @@ export default function FormPatternsSidePanel() { badgeLimit="wrap" showIcon={false} deletableBadge - className="w-full min-w-lg!" + className="w-full" /> @@ -627,7 +627,7 @@ export default function FormPatternsSidePanel() { /> - + {/* Radio Group */} @@ -659,7 +659,7 @@ export default function FormPatternsSidePanel() { /> - + {/* Date Picker */} @@ -698,7 +698,7 @@ export default function FormPatternsSidePanel() { /> - + {/* Field Array */} @@ -727,7 +727,7 @@ export default function FormPatternsSidePanel() { /> - + {/* Key/Value Field Array */} @@ -758,7 +758,7 @@ export default function FormPatternsSidePanel() { /> - + {/* Action Field */}