mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
[Maps] fix attribution overflow with exit full screen button (#62699)
* [Maps] fix attribution overflow with exit full screen button * use margin-left instead of padding-left Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
This commit is contained in:
parent
8cacbdfaa5
commit
3598b8c44c
3 changed files with 12 additions and 1 deletions
|
@ -4,3 +4,7 @@
|
|||
pointer-events: all;
|
||||
padding-left: $euiSizeM;
|
||||
}
|
||||
|
||||
.mapAttributionControl__fullScreen {
|
||||
margin-left: $euiSizeXXL * 4;
|
||||
}
|
||||
|
|
|
@ -7,10 +7,12 @@
|
|||
import { connect } from 'react-redux';
|
||||
import { AttributionControl } from './view';
|
||||
import { getLayerList } from '../../../selectors/map_selectors';
|
||||
import { getIsFullScreen } from '../../../selectors/ui_selectors';
|
||||
|
||||
function mapStateToProps(state = {}) {
|
||||
return {
|
||||
layerList: getLayerList(state),
|
||||
isFullScreen: getIsFullScreen(state),
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
import React, { Fragment } from 'react';
|
||||
import _ from 'lodash';
|
||||
import { EuiText, EuiLink } from '@elastic/eui';
|
||||
import classNames from 'classnames';
|
||||
|
||||
export class AttributionControl extends React.Component {
|
||||
state = {
|
||||
|
@ -86,7 +87,11 @@ export class AttributionControl extends React.Component {
|
|||
return null;
|
||||
}
|
||||
return (
|
||||
<div className="mapAttributionControl">
|
||||
<div
|
||||
className={classNames('mapAttributionControl', {
|
||||
mapAttributionControl__fullScreen: this.props.isFullScreen,
|
||||
})}
|
||||
>
|
||||
<EuiText size="xs">
|
||||
<small>
|
||||
<strong>{this._renderAttributions()}</strong>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue