Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
tomodwyer committed Sep 3, 2024
1 parent 164d6b7 commit aa99d52
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions assets/src/scripts/_resizer.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ function setBrowserHeight() {
}

if (document.getElementById("selected-contents")) {
document.documentElement.classList.remove("min-h-screen");
document.documentElement.classList.add("h-screen");

document.body.classList.remove("min-h-screen");
document.body.classList.add("h-screen");

new ResizeObserver(() => {
setBrowserHeight();
}).observe(document.documentElement);
Expand Down

0 comments on commit aa99d52

Please sign in to comment.