Skip to content

Commit

Permalink
feat: scroll if open
Browse files Browse the repository at this point in the history
  • Loading branch information
dewanakl committed Jan 26, 2025
1 parent e02fab4 commit 460b0d3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions css/guest.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
display: none !important;
}

body {
overflow-y: hidden;
}

.font-esthetic {
font-family: 'Sacramento', cursive !important;
}
Expand Down
1 change: 1 addition & 0 deletions js/app/guest/guest.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ export const guest = (() => {
*/
const open = (button) => {
button.disabled = true;
document.body.style.overflowY = 'scroll';

if (!theme.isAutoMode()) {
document.getElementById('button-theme').style.display = 'none';
Expand Down

0 comments on commit 460b0d3

Please sign in to comment.