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:
@@ -56,7 +56,7 @@ async function generateSite() {
|
|||||||
position: relative;
|
position: relative;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
max-width: 100vw;
|
max-width: 100vw;
|
||||||
height: auto;
|
padding-bottom: 100%; /* Creates a 1:1 aspect ratio container */
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
}
|
}
|
||||||
.progressive-image {
|
.progressive-image {
|
||||||
|
|||||||
Reference in New Issue
Block a user