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:
parent
2611988636
commit
050af12746
@ -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 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user