Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No es posible redimensionar el img-container con valores absolutos mientras se usa el contenedor circle. #120

Open
linksquidmx opened this issue Jul 7, 2022 · 0 comments

Comments

@linksquidmx
Copy link

linksquidmx commented Jul 7, 2022

Al definir las propiedades width y height con valores absolutos, para cambiar el tamaño del contenedor de una imagen .img-container o agregar otra clase, mientras se utiliza el contenedor circle, sólo se aplica el ancho, pero el alto se mantiene al 100%, por lo que la imagen pierde proporción. Con el resto de contenedores si se ajustan ambos valores.

Ejemplo:

JSX:
<div className="profile-picture circle img-container"></div>

SCSS:
.profile-picture { width: 120px; height: 120px; }

Resultado:
Captura de pantalla 2022-07-07 180137

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant