fix: page horizontal scroll from resolution 768px to 1023px #461
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 cambió la forma de gestionar el background en forma de paralelogramo.
Problema solucionado
Scroll horizontal en la página desde la resolución 768px hasta 1023px. #450 complementando la PR #458
Cambios propuestos
En lugar de manejar directamente el efecto de paralelogramo del fondo en el contenedor padre con la clase de Tailwind
-skew-x-6
, se gestiona mediante el pseudoelemento::before
del padre. A este pseudoelemento se le aplican los estilos del fondo y se utiliza la propiedad clip-path para lograr el efecto de paralelogramo. La clase-skew-x-6
se aplica a los hijos que lo requieran. De esta manera, se evita que el contenedor se salga de los límites de la página al ser sesgado usando la clase-skew-x-6
.Capturas de pantalla
antes:
despues:
Comprobación de cambios