Skip to content

Commit

Permalink
fix display of maps list (#27796)
Browse files Browse the repository at this point in the history
* fix display of maps list

* smap
  • Loading branch information
snide authored Dec 27, 2018
1 parent a3b4f68 commit 2a1d5ec
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ exports[`after fetch initialFilter 1`] = `
<EuiButton
color="primary"
data-test-subj="newDashboardLink"
fill={false}
fill={true}
href="#/dashboard"
iconSide="left"
type="button"
Expand Down Expand Up @@ -333,7 +333,7 @@ exports[`after fetch renders table rows 1`] = `
<EuiButton
color="primary"
data-test-subj="newDashboardLink"
fill={false}
fill={true}
href="#/dashboard"
iconSide="left"
type="button"
Expand Down Expand Up @@ -501,7 +501,7 @@ exports[`after fetch renders warning when listingLimit is exceeded 1`] = `
<EuiButton
color="primary"
data-test-subj="newDashboardLink"
fill={false}
fill={true}
href="#/dashboard"
iconSide="left"
type="button"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -522,6 +522,7 @@ class DashboardListingUi extends React.Component {
<EuiButton
href={`#${DashboardConstants.CREATE_NEW_DASHBOARD_URL}`}
data-test-subj="newDashboardLink"
fill
>
<FormattedMessage
id="kbn.dashboard.listing.createNewDashboardButtonLabel"
Expand Down
7 changes: 5 additions & 2 deletions x-pack/plugins/gis/public/_main.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@


// Makes sure the listing page is full height with proper background
map-listing, .gisListingPage {
display: flex;
flex-grow: 1;
}


#gis-plugin {
Expand Down
5 changes: 3 additions & 2 deletions x-pack/plugins/gis/public/shared/components/map_listing.js
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,7 @@ export class MapListing extends React.Component {
<EuiButton
href={`#/map`}
data-test-subj="newMapLink"
fill
>
Create new map
</EuiButton>
Expand Down Expand Up @@ -372,8 +373,8 @@ export class MapListing extends React.Component {

render() {
return (
<EuiPage data-test-subj="gisListingPage" restrictWidth>
<EuiPageBody>
<EuiPage data-test-subj="gisListingPage" className="gisListingPage">
<EuiPageBody restrictWidth>
{this.renderPageContent()}
</EuiPageBody>
</EuiPage>
Expand Down

0 comments on commit 2a1d5ec

Please sign in to comment.