diff --git a/x-pack/legacy/plugins/maps/public/components/map/_feature_tooltip.scss b/x-pack/legacy/plugins/maps/public/components/map/_feature_tooltip.scss
index 416ba8c6c01f0..1ce7738f37fda 100644
--- a/x-pack/legacy/plugins/maps/public/components/map/_feature_tooltip.scss
+++ b/x-pack/legacy/plugins/maps/public/components/map/_feature_tooltip.scss
@@ -1,4 +1,5 @@
.mapFeatureTooltip_table {
+ width: 100%;
td {
padding: $euiSizeXS;
}
diff --git a/x-pack/legacy/plugins/maps/public/components/map/feature_tooltip.js b/x-pack/legacy/plugins/maps/public/components/map/feature_tooltip.js
index 542886b661765..dd128f551a98e 100644
--- a/x-pack/legacy/plugins/maps/public/components/map/feature_tooltip.js
+++ b/x-pack/legacy/plugins/maps/public/components/map/feature_tooltip.js
@@ -8,7 +8,6 @@ import React, { Fragment } from 'react';
import {
EuiButtonIcon,
EuiText,
- EuiTextAlign,
EuiPagination,
EuiSelect,
EuiIconTip,
@@ -159,6 +158,7 @@ export class FeatureTooltip extends React.Component {
options={options}
onChange={this._onLayerChange}
valueOfSelected={this.state.layerIdFilter}
+ compressed
aria-label={i18n.translate('xpack.maps.tooltip.layerFilterLabel', {
defaultMessage: 'Filter results by layer'
})}
@@ -172,7 +172,7 @@ export class FeatureTooltip extends React.Component {
return null;
}
- const divider = (this.state.uniqueLayers && this.state.uniqueLayers.length > 1) ? : null;
+ const divider = (this.state.uniqueLayers && this.state.uniqueLayers.length > 1) ? : null;
return (
@@ -196,7 +196,7 @@ export class FeatureTooltip extends React.Component {
return (
-
+
{this._renderPagination(filteredFeatures)}
);
@@ -207,16 +207,14 @@ export class FeatureTooltip extends React.Component {
return null;
}
return (
-
-
-
+
);
}
@@ -242,9 +240,7 @@ export class FeatureTooltip extends React.Component {
_renderPagination(filteredFeatures) {
const pageNumberReadout = (
-
- {(this.state.pageNumber + 1)} of {filteredFeatures.length}
-
+ {(this.state.pageNumber + 1)} of {filteredFeatures.length}
);
let cycleArrows;
@@ -262,18 +258,18 @@ export class FeatureTooltip extends React.Component {
const hint = this.props.showFeatureList ? () : null;
return (
-
+
- {pageNumberReadout}
+ {hint}
- {hint}
+ {pageNumberReadout}
{cycleArrows}