yay, no clipping

This commit is contained in:
AW_Dev 2024-05-07 19:32:35 -07:00
parent a6b1aa843b
commit b61f2c6431
2 changed files with 6 additions and 2 deletions

View file

@ -38,6 +38,6 @@ fetchAndLogTextFile('./ascii-art.txt');
window.addEventListener("load", (e) => {
document.querySelectorAll(".section").forEach(element => {
element.style.minHeight = window.innerHeight + "px"
element.style.minHeight = element.getBoundingClientRect().height + "px"
})
})

View file

@ -1,9 +1,13 @@
.section {
height: 100vh;
height: fit-content;
width: 100%;
box-sizing: border-box;
}
.landing-section {
height: 100vh;
}
.container {
margin: auto;
padding: 0 20px;