Merge pull request #9833 from overleaf/revert-9559-jel-dash-scroll

Revert "[web] Project dashboard scrolling"

GitOrigin-RevId: dc18d2717714b8c044a5c2bd04c3bef0b579663d
This commit is contained in:
Jessica Lawshe 2022-10-03 09:17:27 -05:00 committed by Copybot
parent 07a68a5a57
commit 6095e63c7d
2 changed files with 100 additions and 84 deletions

View file

@ -45,18 +45,19 @@ function ProjectListPageContent() {
<LoadingBranded loadProgress={loadProgress} />
</div>
) : (
<div className="project-list-row fill">
<div className="project-list-wrapper clearfix">
{error ? <DashApiError /> : ''}
{totalProjectsCount > 0 ? (
<>
<div className="project-list-sidebar-wrapper-react hidden-xs">
<div className="project-list-sidebar-wrapper hidden-xs">
<aside className="project-list-sidebar">
<NewProjectButton id="new-project-button-sidebar" />
<SidebarFilters />
</aside>
<SurveyWidget />
</div>
<div className="project-list-main-react">
<div className="project-list-main">
<Row>
<Col xs={12}>
<UserNotifications />
@ -119,7 +120,6 @@ function ProjectListPageContent() {
</div>
</>
) : (
<div className="project-list-welcome-wrapper">
<Row className="row-spaced">
<Col
xs={8}
@ -131,9 +131,9 @@ function ProjectListPageContent() {
<WelcomeMessage />
</Col>
</Row>
</div>
)}
</div>
</div>
)
}

View file

@ -24,13 +24,23 @@
}
}
.project-list-wrapper {
display: flex;
align-items: stretch;
.project-list-row {
height: 100%;
min-height: calc(~'100vh -' @header-height);
}
.project-list-sidebar-wrapper-react {
flex: 0 0 15%;
.project-list-wrapper {
position: absolute;
width: 100%;
height: 100%;
}
.project-list-sidebar-wrapper {
float: left;
position: static;
width: 15%;
min-width: 160px;
.project-list-sidebar {
> .dropdown {
width: 100%;
@ -42,12 +52,12 @@
}
}
.project-list-welcome-wrapper {
width: 100%;
}
.project-list-main-react {
padding: @content-margin-vertical @grid-gutter-width / 2;
.project-list-main {
position: static;
overflow: auto;
padding-left: @grid-gutter-width / 2;
padding-right: @grid-gutter-width / 2;
margin-left: initial;
}
ul.folders-menu {
@ -560,6 +570,12 @@
}
}
.project-list-react.container,
.project-list-react .project-list-sidebar-wrapper,
.project-list-react .project-list-main {
height: 100%;
}
.current-plan {
vertical-align: middle;
line-height: @line-height-base;