feat: enhance TOTP settings UI with improved layout and status indication

This commit is contained in:
shuaiplus
2026-05-12 15:55:05 +08:00
parent 06431c4145
commit 83a1fc2376
4 changed files with 58 additions and 8 deletions
+9 -2
View File
@@ -281,8 +281,15 @@ export default function SettingsPage(props: SettingsPageProps) {
</section>
<section className="card settings-module">
<h3>{t('txt_totp')}</h3>
{totpLocked && <div className="status-ok">{t('txt_totp_is_enabled_for_this_account')}</div>}
<div className="settings-module-head">
<h3>{t('txt_totp')}</h3>
{totpLocked && (
<span className="totp-status-pill">
<ShieldCheck size={14} aria-hidden="true" />
{t('txt_enabled')}
</span>
)}
</div>
<div className="totp-grid">
<div className="totp-qr">
<img src={qrDataUrl} alt="TOTP QR" />