diff --git a/www/packages/docs-ui/src/hooks/use-recaptcha/index.tsx b/www/packages/docs-ui/src/hooks/use-recaptcha/index.tsx index 3edce8bd2d..c5ad24a151 100644 --- a/www/packages/docs-ui/src/hooks/use-recaptcha/index.tsx +++ b/www/packages/docs-ui/src/hooks/use-recaptcha/index.tsx @@ -121,6 +121,17 @@ export const useRecaptcha = ({ siteKey }: UseRecaptchaProps) => { } }, [isScriptLoaded]) + useEffect(() => { + if (!isExecuteReady) { + return + } + + const recaptchaElm = document.querySelector(".grecaptcha-badge") + if (recaptchaElm?.parentElement) { + recaptchaElm.parentElement.classList.add("absolute") + } + }, [isExecuteReady]) + const execute = useCallback( async (actionName: RecaptchaAction): Promise => { if (!isExecuteReady) {