Only set sidebar height when sidebar visible

This commit is contained in:
WithoutPants 2025-12-05 08:43:48 +11:00
parent b6ba22403f
commit d796fcbfd5

View file

@ -929,7 +929,6 @@ $sticky-header-height: calc(50px + 3.3rem);
align-self: flex-start;
// take a further 15px padding to match the detail body
height: calc(100vh - $sticky-header-height - 15px);
margin-top: -15px;
max-height: calc(100vh - $sticky-header-height - 15px);
overflow-y: auto;
@ -943,6 +942,10 @@ $sticky-header-height: calc(50px + 3.3rem);
}
}
.sidebar-pane:not(.hide-sidebar) .sidebar {
height: calc(100vh - $sticky-header-height - 15px);
}
.sidebar-pane.hide-sidebar .sidebar {
left: -$sidebar-width;
margin-left: calc(-15px - $sidebar-width);