Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Make colorbar width static

Benjamin Kingc112701ca761
diff --git a/web/css/palettes.css b/web/css/palettes.css
index 07e691d84..3d5e58b0e 100644
--- a/web/css/palettes.css
+++ b/web/css/palettes.css
@@ -177,12 +177,16 @@
}
.wv-palettes-colorbar {
- width: 100%;
+ width: 231px;
height: 12px;
border: 1px solid #404040;
margin-bottom: 13px;
+ max-width: 231px;
+ margin-left: 5px
+}
+.scrollbar-visible .wv-palettes-colorbar {
+ margin-left: 0
}
-
.wv-palettes-colorbar:hover {
cursor: crosshair;
}
diff --git a/web/js/components/sidebar/legend.js b/web/js/components/sidebar/legend.js
index 0e5178337..48e9ed818 100644
--- a/web/js/components/sidebar/legend.js
+++ b/web/js/components/sidebar/legend.js
@@ -215,7 +215,6 @@ class Legend extends React.Component {
xOffset = this.state.width * percent;
}
}
-
var min = legend.minLabel || legend.tooltips[0];
var max = legend.maxLabel || legend.tooltips[toolTipLength];
min = palette.min ? legend.tooltips[palette.min] : min;
@@ -398,7 +397,7 @@ Legend.defaultProps = {
isRunningData: false,
isHoveringLegend: false,
isRunningDataEnabled: true,
- width: 235,
+ width: 231,
height: 12
};
Legend.propTypes = {