@@ -188,7 +188,7 @@ const TwoFactorTab = ({ user, onStatusChange }: TwoFactorTabProps) => {
188188 if ( user . twoFactorEnabled && step === 'status' ) {
189189 return (
190190 < div className = 'space-y-6' >
191- < div className = 'border-primary/20 bg-primary/5 flex items-start gap-4 rounded-xl border p-6 md:p-8' >
191+ < div className = 'border-primary/20 bg-primary/5 flex items-start gap-4 rounded-xl border p-4 sm:p- 6 md:p-8' >
192192 < div className = 'bg-primary/10 rounded-lg p-2' >
193193 < ShieldCheck className = 'text-primary h-6 w-6' />
194194 </ div >
@@ -201,7 +201,7 @@ const TwoFactorTab = ({ user, onStatusChange }: TwoFactorTabProps) => {
201201 </ div >
202202 </ div >
203203
204- < div className = 'space-y-6 rounded-xl border border-zinc-800 bg-zinc-900/30 p-6 md:p-8' >
204+ < div className = 'space-y-6 rounded-xl border border-zinc-800 bg-zinc-900/30 p-4 sm:p- 6 md:p-8' >
205205 < div className = 'space-y-4' >
206206 < div className = 'flex items-center gap-3' >
207207 < KeyRound className = 'text-primary h-5 w-5' />
@@ -227,7 +227,7 @@ const TwoFactorTab = ({ user, onStatusChange }: TwoFactorTabProps) => {
227227 className = 'h-11 border-zinc-800 bg-zinc-900/50 text-white placeholder:text-zinc-600'
228228 />
229229 </ div >
230- < div className = 'flex gap-3' >
230+ < div className = 'flex flex-col gap-3 sm:flex-row ' >
231231 < BoundlessButton
232232 variant = 'outline'
233233 onClick = { handleRegenerateCodes }
@@ -257,7 +257,7 @@ const TwoFactorTab = ({ user, onStatusChange }: TwoFactorTabProps) => {
257257 </ div >
258258 ) ) }
259259 </ div >
260- < div className = 'flex gap-3' >
260+ < div className = 'flex flex-col gap-3 sm:flex-row ' >
261261 < BoundlessButton
262262 variant = 'outline'
263263 size = 'sm'
@@ -284,7 +284,7 @@ const TwoFactorTab = ({ user, onStatusChange }: TwoFactorTabProps) => {
284284 if ( step === 'status' ) {
285285 return (
286286 < div className = 'space-y-6' >
287- < div className = 'flex items-start gap-4 rounded-xl border border-zinc-800 bg-zinc-900/30 p-6 md:p-8' >
287+ < div className = 'flex items-start gap-4 rounded-xl border border-zinc-800 bg-zinc-900/30 p-4 sm:p- 6 md:p-8' >
288288 < div className = 'rounded-lg bg-yellow-500/10 p-2' >
289289 < ShieldAlert className = 'h-6 w-6 text-yellow-500' />
290290 </ div >
@@ -300,7 +300,7 @@ const TwoFactorTab = ({ user, onStatusChange }: TwoFactorTabProps) => {
300300 </ div >
301301 </ div >
302302
303- < div className = 'space-y-4 rounded-xl border border-zinc-800 bg-zinc-900/30 p-6 md:p-8' >
303+ < div className = 'space-y-4 rounded-xl border border-zinc-800 bg-zinc-900/30 p-4 sm:p- 6 md:p-8' >
304304 < div className = 'space-y-2' >
305305 < Label htmlFor = 'setup-password' > Confirm Password to Setup</ Label >
306306 < Input
@@ -330,7 +330,7 @@ const TwoFactorTab = ({ user, onStatusChange }: TwoFactorTabProps) => {
330330 < h3 className = 'text-xl font-bold text-white' > Scan QR Code</ h3 >
331331 </ div >
332332
333- < div className = 'flex flex-col items-center gap-8 rounded-xl border border-zinc-800 bg-zinc-900/30 p-8 md:flex-row' >
333+ < div className = 'flex flex-col items-center gap-6 rounded-xl border border-zinc-800 bg-zinc-900/30 p-4 sm:p-6 md:flex-row md:gap-8 md:p-8 ' >
334334 < div className = 'rounded-lg bg-white p-4' >
335335 < QRCodeSVG value = { totpUri } size = { 180 } />
336336 </ div >
@@ -396,7 +396,7 @@ const TwoFactorTab = ({ user, onStatusChange }: TwoFactorTabProps) => {
396396 < h3 className = 'text-xl font-bold text-white' > Verify Setup</ h3 >
397397 </ div >
398398
399- < div className = 'space-y-6 rounded-xl border border-zinc-800 bg-zinc-900/30 p-8' >
399+ < div className = 'space-y-6 rounded-xl border border-zinc-800 bg-zinc-900/30 p-4 sm:p-6 md:p- 8' >
400400 < div className = 'space-y-2 text-center' >
401401 < p className = 'text-[#B5B5B5]' >
402402 Enter the 6-digit code from your app to confirm everything is
@@ -462,7 +462,7 @@ const TwoFactorTab = ({ user, onStatusChange }: TwoFactorTabProps) => {
462462 if ( step === 'backup' ) {
463463 return (
464464 < div className = 'space-y-8' >
465- < div className = 'border-primary/20 bg-primary/10 space-y-4 rounded-xl border p-6' >
465+ < div className = 'border-primary/20 bg-primary/10 space-y-4 rounded-xl border p-4 sm:p- 6' >
466466 < div className = 'text-primary flex items-center gap-3' >
467467 < ShieldCheck className = 'h-6 w-6' />
468468 < h3 className = 'text-xl font-bold' > 2FA Enabled Successfully</ h3 >
@@ -473,18 +473,18 @@ const TwoFactorTab = ({ user, onStatusChange }: TwoFactorTabProps) => {
473473 </ p >
474474 </ div >
475475
476- < div className = 'space-y-6 rounded-xl border border-zinc-800 bg-zinc-900/30 p-8' >
477- < div className = 'grid grid-cols-2 gap-4' >
476+ < div className = 'space-y-6 rounded-xl border border-zinc-800 bg-zinc-900/30 p-4 sm:p-6 md:p- 8' >
477+ < div className = 'grid grid-cols-2 gap-3 sm:gap- 4' >
478478 { backupCodes . map ( ( code , i ) => (
479479 < div
480480 key = { i }
481- className = 'rounded border border-white/10 bg-white/5 p-3 text-center font-mono tracking-widest text-white uppercase'
481+ className = 'rounded border border-white/10 bg-white/5 p-2 text-center font-mono text-xs tracking-widest text-white uppercase sm:p-3 sm:text-sm '
482482 >
483483 { code }
484484 </ div >
485485 ) ) }
486486 </ div >
487- < div className = 'flex gap-4' >
487+ < div className = 'flex flex-col gap-3 sm:flex-row sm: gap-4' >
488488 < BoundlessButton
489489 fullWidth
490490 variant = 'outline'
0 commit comments