From 65b988c686c14bc10530e6b90c3d25de5c41be90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Bombeck?= Date: Thu, 4 Jun 2026 16:26:58 +0200 Subject: [PATCH] fix(settings): right-align danger-zone action buttons beside their labels MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The data-reset and account-delete cards under Settings → Advanced stacked their destructive button below the description. Move the button to a right-aligned slot on the same row as the title and description, matching the stack-on-mobile / right-align-on-desktop contract the onboarding-tour and about cards already use (flex-col gap-3 sm:flex-row sm:justify-between, button w-full sm:w-auto). The AlertDialog confirmation, i18n keys, and destructive styling are unchanged. --- src/components/settings/advanced-section.tsx | 42 ++++++++++++-------- 1 file changed, 25 insertions(+), 17 deletions(-) diff --git a/src/components/settings/advanced-section.tsx b/src/components/settings/advanced-section.tsx index f40d4e577..279af5388 100644 --- a/src/components/settings/advanced-section.tsx +++ b/src/components/settings/advanced-section.tsx @@ -276,17 +276,23 @@ function DataResetCard() { GitHub-style (red CTA only) rather than red-on-red-on-red. The protective gate (confirmation dialog) is unchanged; this is purely a visual-tone fix per the v1.4.43 audit. */} -

- {t("settings.dangerZone")} -

-

- {t("settings.dangerZoneDescription")} -

- -
+
+
+

+ {t("settings.dangerZone")} +

+

+ {t("settings.dangerZoneDescription")} +

+
-