mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-15 17:56:07 +01:00
Fixed mobile not clearing out sidebar classes
This commit is contained in:
@@ -93,6 +93,11 @@ export default class MobileSidebar {
|
|||||||
display: data.matches ? 'none' : 'inherit',
|
display: data.matches ? 'none' : 'inherit',
|
||||||
opacity: data.matches ? 0 : 1
|
opacity: data.matches ? 0 : 1
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if (data.matches) {
|
||||||
|
$('body').removeClass('sidebar-open sidebar-closed');
|
||||||
|
}
|
||||||
|
|
||||||
this[data.matches ? 'attach' : 'detach']();
|
this[data.matches ? 'attach' : 'detach']();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
3
themes/grav/css-compiled/template.css
vendored
3
themes/grav/css-compiled/template.css
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
4
themes/grav/js/admin.min.js
vendored
4
themes/grav/js/admin.min.js
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user