Skip to content
Snippets Groups Projects
Commit c6da1b93 authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms Committed by Jan-Hendrik Willms
Browse files

fixes #3749

Closes #3749

Merge request studip/studip!2604
parent ae790bb8
No related branches found
No related tags found
No related merge requests found
...@@ -131,7 +131,11 @@ export default { ...@@ -131,7 +131,11 @@ export default {
.classList.add('contentbar-wrapper-right'); .classList.add('contentbar-wrapper-right');
} }
document.getElementById('responsive-contentbar-container').prepend(this.realContentbar); const contentbarContainer = document.getElementById('responsive-contentbar-container');
contentbarContainer.prepend(this.realContentbar);
document.getElementById('content-wrapper').style.marginTop = `${contentbarContainer.clientHeight}px`;
} else { } else {
this.realContentbar.id = 'contentbar'; this.realContentbar.id = 'contentbar';
document.getElementById('toggle-sidebar').remove(); document.getElementById('toggle-sidebar').remove();
...@@ -145,6 +149,8 @@ export default { ...@@ -145,6 +149,8 @@ export default {
} }
document.querySelector(this.realContentbarSource).prepend(this.realContentbar); document.querySelector(this.realContentbarSource).prepend(this.realContentbar);
document.getElementById('content-wrapper').style.marginTop = 'initial';
} }
} }
}, },
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment