Interactive interface for browsing global, full-resolution satellite imagery
Change width of palette canvas when zot is active #2321
Benjamin Kingc4790ebdc1be
diff --git a/web/css/palettes.css b/web/css/palettes.cssindex fc61bde27..11010416a 100644--- a/web/css/palettes.css+++ b/web/css/palettes.css@@ -169,7 +169,6 @@}.wv-palettes-colorbar {- width: 231px;height: 24px;margin-bottom: 13px;max-width: 231px;diff --git a/web/js/components/sidebar/paletteLegend.js b/web/js/components/sidebar/paletteLegend.jsindex 798737a03..f5309b957 100644--- a/web/js/components/sidebar/paletteLegend.js+++ b/web/js/components/sidebar/paletteLegend.js@@ -266,6 +266,7 @@ class PaletteLegend extends React.Component {id={layer.id + '-' + legend.id + index + 'colorbar'}width={width}height={24}+ style={{ width: width }}ref={this['canvas_' + index]}onMouseEnter={!isMobile ? this.onMouseEnter.bind(this) : null}onMouseLeave={!isMobile ? this.hideValue.bind(this) : null}@@ -335,7 +336,7 @@ class PaletteLegend extends React.Component {containment={scrollContainerEl}partialVisibility={true}>- { ({ isVisible }) => (+ {({ isVisible }) => (<div className={legendClass} key={legend.id + '_' + legendIndex}>{legend.colors.map((color, keyIndex) => {const isActiveKey = activeKeyObj && activeKeyObj.index === keyIndex;diff --git a/web/js/containers/sidebar/layer.js b/web/js/containers/sidebar/layer.jsindex 784e612a1..94127eb2a 100644--- a/web/js/containers/sidebar/layer.js+++ b/web/js/containers/sidebar/layer.js@@ -53,7 +53,8 @@ class Layer extends React.Component {requestPalette,isCustomPalette,isLoading,- isMobile+ isMobile,+ zot} = this.props;if (!lodashIsEmpty(renderedPalette)) {const isRunningData = compare.active@@ -66,6 +67,7 @@ class Layer extends React.Component {layerGroupName={layerGroupName}paletteId={palette.id}getPalette={getPalette}+ width={zot ? 220 : 231}paletteLegends={paletteLegends}isCustomPalette={isCustomPalette}isRunningData={isRunningData}