mirror of
https://github.com/stashapp/stash.git
synced 2025-12-06 00:13:46 +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;
|
||||
|
||||
// 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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue