Update CSS in generateSite.js to enforce a 1:1 aspect ratio for image containers by replacing height with padding-bottom. This change enhances the responsiveness and visual consistency of the site during image loading.

This commit is contained in:
Knight 2024-12-28 11:55:28 -05:00
parent 2611988636
commit 050af12746

View File

@ -56,7 +56,7 @@ async function generateSite() {
position: relative;
width: 100%;
max-width: 100vw;
height: auto;
padding-bottom: 100%; /* Creates a 1:1 aspect ratio container */
margin: 0 auto;
}
.progressive-image {