1

I am using this package in my React application.

The problem is when running the application in a specific device Galaxy Fold, the container of selecting images is too big.

I need to change the size of the div with this id rc-imageselect.

Here is my code

        <div className={classes.recapt} style={{ transform: 'scale(0.8, 0.8) translateX(10%)', display: "table" }}>
          <Recaptcha
            expiredCallback={() => setCaptchaCode(false)}
            sitekey={localStorage.getItem("CAPTCHA_KEY")}
            render="explicit"
            onloadCallback={callback}
            verifyCallback={verifyCallback}
          />
        </div>

   export default makeStyles((theme) => ({
    recapt: {
      "&div": {
        "&#rc-imageselect": {
            transform: 'scale(0.8, 0.8) translateX(10%)'
        }
       }
    }
   }));

But this doesn't work.

I changed it in te inspect panel and it works. So my guess I am selection the div in a wrong way.

Any help would be appreciated.

enter image description here

Amine
  • 1,715
  • 2
  • 9
  • 24

1 Answers1

0

I think your style targeting has problem, try like this :

"& > div > image"

And i think u cannot using query (#elementID) on that .

Edit

After uploading photo : Take look at this

b3hr4d
  • 2,025
  • 3
  • 16