-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix centered dashboard listing (#21119)
- Loading branch information
Showing
3 changed files
with
24 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -454,7 +454,7 @@ export class DashboardListing extends React.Component { | |
} | ||
|
||
return ( | ||
<EuiPageContent horizontalPosition="center"> | ||
<EuiPageContent className="dashboardLandingPageContent" horizontalPosition="center"> | ||
{this.renderListingOrEmptyState()} | ||
</EuiPageContent> | ||
); | ||
|
@@ -463,7 +463,8 @@ export class DashboardListing extends React.Component { | |
render() { | ||
return ( | ||
<EuiPage data-test-subj="dashboardLandingPage" className="dashboardLandingPage"> | ||
<EuiPageBody restrictWidth> | ||
{/* TODO: add restrictWidth prop on EuiPageBody here when [email protected] is applied */} | ||
<EuiPageBody> | ||
{this.renderPageContent()} | ||
</EuiPageBody> | ||
</EuiPage> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -434,7 +434,16 @@ dashboard-viewport-provider { | |
} | ||
} | ||
|
||
.dashboardLandingPage { | ||
// Mimics EuiPageBackground | ||
dashboard-listing { | ||
background-color: @globalColorLightestGray; | ||
min-height: 100vh; | ||
} | ||
|
||
.dashboardLandingPage { | ||
background: @globalColorLightestGray; | ||
} | ||
|
||
.dashboardLandingPageContent { | ||
max-width: 1000px !important; // Temp fix till [email protected] is merged | ||
} |