Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Descripción
Se corrige contenido cortado en el componente
ForecastBoxer
Cambios propuestos
Se remueve el
overflow-hidden
delwrapper
para evitar que se corte el contenido que sobresale o que puede llegar a sobresalir, en este caso, el nombre del boxeador y el porcentaje. Eloverflow-hidden
se usaba para mantener elaspect-ratio
de la imagen del boxeador, ya que la imagen crecía con el contenido. Para solucionar esto, se usaabsolute
en el contenedor del título y porcentaje, posicionándolo debajo y al centro de la imagen, y se agrega alwrapper
unpb-[content-height]
. De esta manera, al "no tener" el contenido en elwrapper
, la imagen mantiene su aspect ratio y el contenido no se corta.Capturas de pantalla
Antes:
Después:
Comprobación de cambios