Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Flip data runner and center bar in triangle #67

Benjamin King3d9a4c7b78fa
diff --git a/web/css/palettes.css b/web/css/palettes.css
index 7c0006e0b..7f9b3186f 100644
--- a/web/css/palettes.css
+++ b/web/css/palettes.css
@@ -143,19 +143,18 @@
}
.wv-palettes-panel .wv-running-bar::before {
- top: 6px;
- left: -5px;
- border-left: 5px solid transparent;
- border-right: 5px solid transparent;
- border-bottom: 5.5px solid #000;
+ top: -1px;
+ left: -4.25px;
+ border-left: 5.5px solid transparent;
+ border-right: 5.5px solid transparent;
+ border-top: 5.5px solid #000;
}
.wv-palettes-panel .wv-running-bar::after {
- top: 7px;
- left: -4px;
- border-left: 4px solid transparent;
- border-right: 4px solid transparent;
- border-bottom: 4px solid #dedede;
+ left: -3.25px;
+ border-left: 4.5px solid transparent;
+ border-right: 4.5px solid transparent;
+ border-top: 4px solid #dedede;
}
.wv-palettes-legend.wv-running .wv-palettes-max,
diff --git a/web/js/components/sidebar/paletteLegend.js b/web/js/components/sidebar/paletteLegend.js
index daa7af1e3..55195aef9 100644
--- a/web/js/components/sidebar/paletteLegend.js
+++ b/web/js/components/sidebar/paletteLegend.js
@@ -232,7 +232,7 @@ class PaletteLegend extends React.Component {
if (legendObj) {
percent = this.getPercent(legendObj.len, legendObj.index);
textWidth = util.getTextWidth(legendObj.label, 'Lucida Sans');
- xOffset = this.state.width * percent;
+ xOffset = Math.floor(this.state.width * percent);
}
}
var min = legend.minLabel || legend.tooltips[0];
@@ -274,7 +274,7 @@ class PaletteLegend extends React.Component {
className="wv-running-bar"
style={{
top: 7,
- left: isHoveringLegend ? 0 : xOffset + 1,
+ left: isHoveringLegend ? 0 : xOffset + 0.5,
visibility: legendObj && !isHoveringLegend ? 'visible' : 'hidden'
}}
/>