Code Monkey home page Code Monkey logo

Comments (8)

rowan-m avatar rowan-m commented on June 13, 2024

This is a tricky one. The easy part of the question is that this is not related to the PHP client library but is how the widget gets displayed. However, clearly that's not going to help you :P I'll check with the rest of the team but currently the only options to change the appearance are specified here: https://developers.google.com/recaptcha/docs/display#config

from recaptcha.

rowan-m avatar rowan-m commented on June 13, 2024

Confirmed with the team that this is the case currently, i.e. the widget is a fixed size. However, we're aware this is an issue and there are some things in the pipeline to help. So, no immediate resolution for you but watch this space.

from recaptcha.

alexhass avatar alexhass commented on June 13, 2024

Great. Thank for Team feedback. Lookinf forward to these new features.

from recaptcha.

rowan-m avatar rowan-m commented on June 13, 2024

@yamlfd you should now be able to try the data-size="small" attribute in the tag. Hopefully that will get something a bit of a better fit for you.

from recaptcha.

alexhass avatar alexhass commented on June 13, 2024

Thanks for unofficial info. Looks better for sure, but still overflows in some screen width. Are you planing to implement a fully responsive/flexible width version in future?

from recaptcha.

Appalab avatar Appalab commented on June 13, 2024

by adding [overflow:hidden] value in css, is it forbidden or against the TOS? but I really need the responsive one.

from recaptcha.

hamedmohammadi avatar hamedmohammadi commented on June 13, 2024

@Appalab
html sample:

css :
.g-recaptcha {
transform: scale(0.81);
transform-origin: 0px 0px 0px;
}

you need to transform the scale of whole container div in order to match your position.
2 approach is needed for responsiveness the first one is to use css media query and the second one is to use js to change the scale dynamically on width change of document or your side bar

from recaptcha.

Appalab avatar Appalab commented on June 13, 2024

thanks, it looks nice now.

from recaptcha.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.