Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

fix custom interval selector tooltip timescale name substring, width, and text wrapping

Edward Plato79de0381d704
diff --git a/web/css/timeline.css b/web/css/timeline.css
index 8f98684a8..a275841c4 100644
--- a/web/css/timeline.css
+++ b/web/css/timeline.css
@@ -454,7 +454,7 @@ g.plot rect.data-bar-invisible {
position: absolute;
bottom: 100%;
border-bottom: 8px solid transparent;
- width: 100%;
+ width: 150px;
z-index: 10;
}
diff --git a/web/js/date/timeline.js b/web/js/date/timeline.js
index 56ae56359..bb1836871 100644
--- a/web/js/date/timeline.js
+++ b/web/js/date/timeline.js
@@ -377,7 +377,8 @@ export function timeline(models, config, ui) {
var setIntervalInput = (intervalValue, zoomLevel) => {
models.date.setCustomInterval(intervalValue, timeScaleToNumberKey[zoomLevel]);
let zoomCustomText = document.querySelector('#zoom-custom');
- zoomCustomText.textContent = `${intervalValue} ${zoomLevel.toUpperCase().substr(0, 3)}`;
+ // zoomCustomText.textContent = `${intervalValue} ${zoomLevel.toUpperCase().substr(0, 3)}`;
+ zoomCustomText.textContent = `${intervalValue} ${zoomLevel.toUpperCase()}`;
// model.events.trigger('zoom-change');
self.reactComponent.setState({
timeScaleChangeUnit: zoomLevel,