From bbfb4de321010be28a8628cbe5521389f335fd1d Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 17 Aug 2026 15:29:11 +0000 Subject: [PATCH] refactor(storage): guarantee vertical + full-width mode row layout MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replace the FormItemLayout wrapper for the both/either row with a plain label + RadioGroupStacked stack — the previous default-vertical FormItemLayout wrap was producing the correct DOM but the effect wasn't visible depending on cache/reload state. Explicit `flex flex-col gap-y-2 w-full` removes any ambiguity: label above, radio group below, spanning the full section width. --- .../Storage/BucketDataProtectionFields.tsx | 45 ++++++++++--------- 1 file changed, 24 insertions(+), 21 deletions(-) diff --git a/apps/studio/components/interfaces/Storage/BucketDataProtectionFields.tsx b/apps/studio/components/interfaces/Storage/BucketDataProtectionFields.tsx index 03a44b0da7f..84aae1fa41d 100644 --- a/apps/studio/components/interfaces/Storage/BucketDataProtectionFields.tsx +++ b/apps/studio/components/interfaces/Storage/BucketDataProtectionFields.tsx @@ -306,25 +306,28 @@ interface ExpirationModeToggleProps { } const ExpirationModeToggle = ({ mode, onModeChange }: ExpirationModeToggleProps) => ( - - - { - if (value) onModeChange(value) - }} - > - - - - - +
+ + { + if (value) onModeChange(value) + }} + > + + + +
)