From 8702213609e7f37a6bae1348e7bd8b1e57f44a84 Mon Sep 17 00:00:00 2001 From: Juan Denis Date: Tue, 10 Nov 2026 12:38:27 -0500 Subject: [PATCH] fix(ui): size the 2FA loading placeholder to its content --- frontend/src/components/settings/SecuritySettingsTab.jsx | 6 ++++-- frontend/src/styles/components/_skeleton.scss | 3 +++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/settings/SecuritySettingsTab.jsx b/frontend/src/components/settings/SecuritySettingsTab.jsx index b1d7d2a9..dc6c7874 100644 --- a/frontend/src/components/settings/SecuritySettingsTab.jsx +++ b/frontend/src/components/settings/SecuritySettingsTab.jsx @@ -13,7 +13,7 @@ import { Badge } from '@/components/ui/badge'; import InfoTip from '../InfoTip'; import LockShieldIllustration from '../illustrations/LockShieldIllustration'; import CopyField from '../CopyField'; -import EmptyState from '../EmptyState'; +import { Skeleton } from '../Skeleton'; import { downloadBlob } from '@/utils/downloadBlob'; import { useTranslation } from 'react-i18next'; import { formatDate, formatDateTime } from '@/utils/intl'; @@ -324,7 +324,9 @@ Keep these codes in a safe place.`; {twoFALoading && !twoFAStatus ? ( - +
+ +
) : twoFALoadError && !twoFAStatus ? ( 100% ragged widths; never let a bar exceed its container. + .skeleton { max-width: 100%; } + // Pushes a trailing control to the right edge of a toolbar row. &__push { margin-left: auto; }