mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 06:03:45 +01:00
Some more scroll fixes.
This commit is contained in:
@@ -38,8 +38,8 @@ define [
|
||||
# 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
|
||||
# though since that's what triggered this happening in the first place.
|
||||
if height < sideBarHeight
|
||||
height = Math.min(sideBarHeight, $window.innerHeight - topOffset - 25)
|
||||
# if height < sideBarHeight
|
||||
# height = Math.min(sideBarHeight, $window.innerHeight - topOffset - 25)
|
||||
$scope.projectListHeight = height
|
||||
|
||||
|
||||
|
||||
@@ -18,44 +18,45 @@
|
||||
}
|
||||
|
||||
.project-list-page {
|
||||
// display: flex;
|
||||
// flex-direction: column;
|
||||
// flex-grow: 1;
|
||||
position: absolute;
|
||||
top: @header-height;
|
||||
bottom: @footer-height;
|
||||
padding-top: 0;
|
||||
padding-bottom: 0;
|
||||
width: 100%;
|
||||
overflow: scroll;
|
||||
}
|
||||
|
||||
.project-list-content when (@is-overleaf = true) {
|
||||
.project-list-content when (@is-overleaf) {
|
||||
.container-fluid;
|
||||
margin: 0;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.project-list-content when (@is-overleaf = false) {
|
||||
.container;
|
||||
}
|
||||
|
||||
.project-list-content {
|
||||
height: 100%;
|
||||
}
|
||||
// .project-list-content when (@is-overleaf) {
|
||||
// height: 100%;
|
||||
// }
|
||||
|
||||
// .project-list-content when (@is-overleaf = false) {
|
||||
// overflow: scroll;
|
||||
// }
|
||||
|
||||
|
||||
|
||||
.sidebar-new-proj-btn when (@is-overleaf) {
|
||||
.btn-block;
|
||||
}
|
||||
|
||||
.project-list-row {
|
||||
.project-list-row when (@is-overleaf) {
|
||||
height: 100%;
|
||||
}
|
||||
.project-list-container {
|
||||
.project-list-container when (@is-overleaf) {
|
||||
height: 100%;
|
||||
}
|
||||
.project-list-content when (@is-overleaf = false) {
|
||||
overflow: scroll;
|
||||
}
|
||||
|
||||
.project-list-sidebar {
|
||||
background-color: @sidebar-bg;
|
||||
padding-top: @content-margin-top;
|
||||
|
||||
Reference in New Issue
Block a user