Skip to content

Commit

Permalink
fix: sidebar backdrop shouldn't show on desktop
Browse files Browse the repository at this point in the history
  • Loading branch information
zuramai committed Aug 1, 2022
1 parent a0a43a7 commit 6a9c97c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/assets/js/components/sidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ class Sidebar {
* Create Sidebar Backdrop
*/
createBackdrop() {
if (window.body.clientWidth < 1200) return
this.deleteBackdrop();
const backdrop = document.createElement('div');
backdrop.classList.add('sidebar-backdrop');
Expand Down

0 comments on commit 6a9c97c

Please sign in to comment.