Skip to content

Commit

Permalink
preserve header height when a dialog is visible (fixes #1678)
Browse files Browse the repository at this point in the history
  • Loading branch information
falkoschindler committed Sep 25, 2023
1 parent a7f6e45 commit 5d48a79
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions website/static/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

<script>
window.onscroll = () => {
if (document.querySelector(".q-dialog__backdrop")) return;
const header = document.querySelector(".q-header");
if (document.documentElement.scrollTop > 50) header.classList.add("fade");
else header.classList.remove("fade");
Expand Down

0 comments on commit 5d48a79

Please sign in to comment.