mirror of
https://github.com/simstudioai/sim.git
synced 2026-04-06 03:00:16 -04:00
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.
This commit is contained in:
@@ -472,7 +472,7 @@ export default function LoginPage({
|
||||
</div>
|
||||
|
||||
{turnstileSiteKey && (
|
||||
<div className='h-0 w-0 overflow-hidden'>
|
||||
<div className='absolute'>
|
||||
<Turnstile
|
||||
ref={turnstileRef}
|
||||
siteKey={turnstileSiteKey}
|
||||
|
||||
@@ -478,7 +478,7 @@ function SignupFormContent({
|
||||
</div>
|
||||
|
||||
{turnstileSiteKey && (
|
||||
<div className='h-0 w-0 overflow-hidden'>
|
||||
<div className='absolute'>
|
||||
<Turnstile
|
||||
ref={turnstileRef}
|
||||
siteKey={turnstileSiteKey}
|
||||
|
||||
Reference in New Issue
Block a user