Skip to content

Commit 9302a1b

Browse files
authored
fix(auth): use absolute positioning for Turnstile container (#3718)
h-0 w-0 overflow-hidden was clipping the iframe, preventing Turnstile from executing. absolute takes it out of flow without clipping, fixing both the layout gap and the captcha failure.
1 parent 8294d8c commit 9302a1b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

apps/sim/app/(auth)/login/login-form.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ export default function LoginPage({
472472
</div>
473473

474474
{turnstileSiteKey && (
475-
<div className='h-0 w-0 overflow-hidden'>
475+
<div className='absolute'>
476476
<Turnstile
477477
ref={turnstileRef}
478478
siteKey={turnstileSiteKey}

apps/sim/app/(auth)/signup/signup-form.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ function SignupFormContent({
478478
</div>
479479

480480
{turnstileSiteKey && (
481-
<div className='h-0 w-0 overflow-hidden'>
481+
<div className='absolute'>
482482
<Turnstile
483483
ref={turnstileRef}
484484
siteKey={turnstileSiteKey}

0 commit comments

Comments
 (0)