diff --git a/web/client/plugins/widgets/autoDisableWidgets.js b/web/client/plugins/widgets/autoDisableWidgets.js index c3953de718..c5e709c2ca 100644 --- a/web/client/plugins/widgets/autoDisableWidgets.js +++ b/web/client/plugins/widgets/autoDisableWidgets.js @@ -10,18 +10,16 @@ import { createSelector } from 'reselect'; import { connect } from 'react-redux'; import { rightPanelOpenSelector, bottomPanelOpenSelector } from '../../selectors/maplayout'; -import { isCesium } from '../../selectors/maptype'; /** - * enhances the component disabling it (setting `enabled` property to `false`) when rightPanel, bottomPanel are open or when the maptype is cesium. + * enhances the component disabling it (setting `enabled` property to `false`) when rightPanel or when bottomPanel are open */ const autoDisableWidgets = connect( createSelector( rightPanelOpenSelector, bottomPanelOpenSelector, - isCesium, - (rightPanel, bottomPanel, cesium) => ({ - enabled: !rightPanel && !bottomPanel && !cesium + (rightPanel, bottomPanel) => ({ + enabled: !rightPanel && !bottomPanel }) ) ); diff --git a/web/client/themes/default/less/cesium.less b/web/client/themes/default/less/cesium.less index eff5d50cf7..1d25e01fd6 100644 --- a/web/client/themes/default/less/cesium.less +++ b/web/client/themes/default/less/cesium.less @@ -31,5 +31,8 @@ } #map .cesium-viewer .compass { - right: 40px; + // we downscale the compass + // to make it fit in between widgets and sidebar + transform: scale(0.75); + right: 26px; }