Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,7 @@
pointer-events: all;
padding-left: $euiSizeM;
}

.mapAttributionControl__fullScreen {
margin-left: $euiSizeXXL * 4;
}
Original file line number Diff line number Diff line change
Expand Up @@ -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),
};
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down Expand Up @@ -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>
Expand Down