@@ -60,7 +60,7 @@ export function MfaSetupDialog({
6060
6161 const downloadRecoveryCodes = ( ) => {
6262 if ( ! recoveryCodes ) return ;
63-
63+
6464 const content = recoveryCodes . join ( "\n" ) ;
6565 const blob = new Blob ( [ content ] , { type : "text/plain" } ) ;
6666 const url = URL . createObjectURL ( blob ) ;
@@ -87,12 +87,12 @@ export function MfaSetupDialog({
8787 Copy and store these recovery codes carefully in case you lose your device.
8888 </ Paragraph >
8989
90- < div className = "flex flex-col gap-6 rounded border border-grid-dimmed bg-background-bright pt-6 " >
91- < div className = "grid grid-cols-3 gap-2 " >
90+ < div className = "flex flex-col rounded border border-grid-dimmed bg-background-bright" >
91+ < div className = "grid grid-cols-3 gap-x-2 gap-y-4 px-3 py-6 " >
9292 { recoveryCodes . map ( ( code , index ) => (
93- < div key = { index } className = "text-center font-mono text-sm text-text-bright" >
93+ < span key = { index } className = "text-center font-mono text-xs text-text-bright" >
9494 { code }
95- </ div >
95+ </ span >
9696 ) ) }
9797 </ div >
9898 < div className = "flex items-center justify-end border-t border-grid-bright px-1.5 py-1.5" >
@@ -145,15 +145,15 @@ export function MfaSetupDialog({
145145 < div className = "flex flex-col gap-4 pt-3" >
146146 < Paragraph >
147147 Scan the QR code below with your preferred authenticator app then enter the 6 digit
148- code that the app generates. Alternatively, you can copy the secret below and paste
149- it into your app.
148+ code that the app generates. Alternatively, you can copy the secret below and paste it
149+ into your app.
150150 </ Paragraph >
151151
152152 < div className = "flex flex-col items-center justify-center gap-y-4 rounded border border-grid-dimmed bg-background-bright py-4" >
153153 < div className = "overflow-hidden rounded-lg border border-grid-dimmed" >
154154 < QRCodeSVG value = { setupData . otpAuthUrl } size = { 300 } marginSize = { 3 } />
155155 </ div >
156- < CopyableText value = { setupData . secret } className = "font-mono text-base tracking-wide" />
156+ < CopyableText value = { setupData . secret } className = "font-mono text-sm tracking-wide" />
157157 </ div >
158158
159159 < div className = "mb-4 flex items-center justify-center" >
@@ -181,7 +181,7 @@ export function MfaSetupDialog({
181181 </ div >
182182 </ div >
183183
184- { error && < FormError > { error } </ FormError > }
184+ < div className = "mb-4 flex justify-center" > { error && < FormError > { error } </ FormError > } </ div >
185185
186186 < DialogFooter >
187187 < Button type = "button" variant = "secondary/medium" onClick = { handleCancel } >
@@ -201,4 +201,4 @@ export function MfaSetupDialog({
201201 </ DialogContent >
202202 </ Dialog >
203203 ) ;
204- }
204+ }
0 commit comments