mirror of
https://github.com/stashapp/stash.git
synced 2025-12-15 12:52:38 +01:00
Only set sidebar height when sidebar visible
This commit is contained in:
parent
b6ba22403f
commit
d796fcbfd5
1 changed files with 4 additions and 1 deletions
|
|
@ -929,7 +929,6 @@ $sticky-header-height: calc(50px + 3.3rem);
|
||||||
align-self: flex-start;
|
align-self: flex-start;
|
||||||
|
|
||||||
// take a further 15px padding to match the detail body
|
// take a further 15px padding to match the detail body
|
||||||
height: calc(100vh - $sticky-header-height - 15px);
|
|
||||||
margin-top: -15px;
|
margin-top: -15px;
|
||||||
max-height: calc(100vh - $sticky-header-height - 15px);
|
max-height: calc(100vh - $sticky-header-height - 15px);
|
||||||
overflow-y: auto;
|
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 {
|
.sidebar-pane.hide-sidebar .sidebar {
|
||||||
left: -$sidebar-width;
|
left: -$sidebar-width;
|
||||||
margin-left: calc(-15px - $sidebar-width);
|
margin-left: calc(-15px - $sidebar-width);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue