Skip to content
Snippets Groups Projects
Commit 8463c9b1 authored by Thomas Hackl's avatar Thomas Hackl
Browse files

Resolve "Kompakte Navigation: falsche Breite des Inhalts bei eingeblendeter Sidebar"

Closes #2432

Merge request studip/studip!1629
parent f4bcbfc9
No related branches found
No related tags found
No related merge requests found
...@@ -582,6 +582,15 @@ $sidebarOut: -330px; ...@@ -582,6 +582,15 @@ $sidebarOut: -330px;
flex-direction: row; flex-direction: row;
flex-wrap: wrap; flex-wrap: wrap;
&.fullscreen-sidebar-shown {
display: grid;
grid-template-columns: ($sidebar-width + $sidebar-padding) calc(100vw - $sidebar-width - $sidebar-padding - 35px);
#content-wrapper {
max-width: 100%;
}
}
#top-bar { #top-bar {
max-height: unset; max-height: unset;
opacity: 1; opacity: 1;
......
...@@ -81,7 +81,7 @@ export default { ...@@ -81,7 +81,7 @@ export default {
if (!document.documentElement.classList.contains('responsive-display')) { if (!document.documentElement.classList.contains('responsive-display')) {
setTimeout(() => { setTimeout(() => {
document.body.style.display = 'flex'; document.body.classList.remove('fullscreen-sidebar-shown');
}, 300); }, 300);
} }
...@@ -101,7 +101,7 @@ export default { ...@@ -101,7 +101,7 @@ export default {
} }
if (!document.documentElement.classList.contains('responsive-display')) { if (!document.documentElement.classList.contains('responsive-display')) {
document.body.style.display = 'grid'; document.body.classList.add('fullscreen-sidebar-shown');
} }
this.sidebarOpen = true; this.sidebarOpen = true;
......
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