mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Some more scroll fixes.
This commit is contained in:
parent
9d35ce5fe1
commit
fd215280a8
2 changed files with 16 additions and 15 deletions
|
@ -38,8 +38,8 @@ define [
|
||||||
# footer. So we now start to track to the bottom of the window, with a 25px padding
|
# footer. So we now start to track to the bottom of the window, with a 25px padding
|
||||||
# since the footer is hidden below the fold. Don't ever get bigger than the sidebar
|
# since the footer is hidden below the fold. Don't ever get bigger than the sidebar
|
||||||
# though since that's what triggered this happening in the first place.
|
# though since that's what triggered this happening in the first place.
|
||||||
if height < sideBarHeight
|
# if height < sideBarHeight
|
||||||
height = Math.min(sideBarHeight, $window.innerHeight - topOffset - 25)
|
# height = Math.min(sideBarHeight, $window.innerHeight - topOffset - 25)
|
||||||
$scope.projectListHeight = height
|
$scope.projectListHeight = height
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -18,44 +18,45 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.project-list-page {
|
.project-list-page {
|
||||||
// display: flex;
|
|
||||||
// flex-direction: column;
|
|
||||||
// flex-grow: 1;
|
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: @header-height;
|
top: @header-height;
|
||||||
bottom: @footer-height;
|
bottom: @footer-height;
|
||||||
padding-top: 0;
|
padding-top: 0;
|
||||||
padding-bottom: 0;
|
padding-bottom: 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
overflow: scroll;
|
||||||
}
|
}
|
||||||
|
|
||||||
.project-list-content when (@is-overleaf = true) {
|
.project-list-content when (@is-overleaf) {
|
||||||
.container-fluid;
|
.container-fluid;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.project-list-content when (@is-overleaf = false) {
|
.project-list-content when (@is-overleaf = false) {
|
||||||
.container;
|
.container;
|
||||||
}
|
}
|
||||||
|
|
||||||
.project-list-content {
|
// .project-list-content when (@is-overleaf) {
|
||||||
height: 100%;
|
// height: 100%;
|
||||||
}
|
// }
|
||||||
|
|
||||||
|
// .project-list-content when (@is-overleaf = false) {
|
||||||
|
// overflow: scroll;
|
||||||
|
// }
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
.sidebar-new-proj-btn when (@is-overleaf) {
|
.sidebar-new-proj-btn when (@is-overleaf) {
|
||||||
.btn-block;
|
.btn-block;
|
||||||
}
|
}
|
||||||
|
|
||||||
.project-list-row {
|
.project-list-row when (@is-overleaf) {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
.project-list-container {
|
.project-list-container when (@is-overleaf) {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
.project-list-content when (@is-overleaf = false) {
|
|
||||||
overflow: scroll;
|
|
||||||
}
|
|
||||||
|
|
||||||
.project-list-sidebar {
|
.project-list-sidebar {
|
||||||
background-color: @sidebar-bg;
|
background-color: @sidebar-bg;
|
||||||
padding-top: @content-margin-top;
|
padding-top: @content-margin-top;
|
||||||
|
|
Loading…
Reference in a new issue