Skip to content
Snippets Groups Projects
Commit 43454993 authored by alexisben's avatar alexisben
Browse files

fix header height

parent e92ee9b6
No related branches found
No related tags found
No related merge requests found
......@@ -52,7 +52,8 @@ class MainMenu {
resize () {
const isMobile = window.innerWidth <= breakpoints.md;
// document.documentElement.style.setProperty('--header-height', this.element.offsetHeight + 'px');
document.documentElement.style.setProperty('--header-height', this.element.offsetHeight + 'px');
// is state changed ?
if (this.state.isMobile === isMobile) {
return null;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment