Interactive interface for browsing global, full-resolution satellite imagery
fix browser zoomed out style, fix mobile date button style, replace tooltips, prevent text highlight on use
Ed Plato79a9a922ab71
diff --git a/web/css/event-filter.css b/web/css/event-filter.cssindex 87c93e216..d05deee31 100644--- a/web/css/event-filter.css+++ b/web/css/event-filter.css@@ -26,7 +26,7 @@}.filter-button {width: 40px;- margin: 5px;+ margin: 5px 0 5px 5px;height: 40px;display: inline-block;vertical-align: top;diff --git a/web/css/timeline.css b/web/css/timeline.cssindex ef7b5395d..0728e9af5 100644--- a/web/css/timeline.css+++ b/web/css/timeline.css@@ -706,7 +706,6 @@ button:focus {border-radius: 5px;cursor: pointer;height: 44px;- width: 88px;& .button-action-group {height: 37px;border-top-right-radius: 5px;diff --git a/web/css/tooltip.css b/web/css/tooltip.cssindex 98c3f03e3..5b279895d 100644--- a/web/css/tooltip.css+++ b/web/css/tooltip.css@@ -8,6 +8,10 @@a {color: #7bf;}++ &.tooltip-inner:not(.zot-tooltip) {+ user-select: none;+ }}.tooltip-icon {diff --git a/web/js/components/timeline/timeline-controls/date-change-arrows.js b/web/js/components/timeline/timeline-controls/date-change-arrows.jsindex 418b129fc..97071015e 100644--- a/web/js/components/timeline/timeline-controls/date-change-arrows.js+++ b/web/js/components/timeline/timeline-controls/date-change-arrows.js@@ -1,5 +1,6 @@import React, { PureComponent } from 'react';import PropTypes from 'prop-types';+import HoverTooltip from '../../util/hover-tooltip';const ANIMATION_DELAY = 200; // interval firing to trigger parent level arrow changeconst CLICK_TIMEOUT_DELAY = 500; // wait before click becomes a delay@@ -80,6 +81,7 @@ class DateChangeArrows extends PureComponent {render() {const {+ isMobile,leftArrowDisabled,rightArrowDisabled,} = this.props;@@ -89,11 +91,16 @@ class DateChangeArrows extends PureComponent {<divclassName={`button-action-group ${leftArrowDisabled ? 'button-disabled' : ''}`}id="left-arrow-group"- title="Click and hold to animate backwards"onMouseDown={this.leftArrowDown}onMouseUp={this.leftArrowUp}onMouseLeave={this.leftArrowUp}>+ <HoverTooltip+ isMobile={isMobile}+ labelText="Click and hold to animate backwards"+ placement="top"+ target="left-arrow-group"+ /><svg width="24" height="30"><pathd="M 10.240764,0 24,15 10.240764,30 0,30 13.759236,15 0,0 10.240764,0 z"@@ -106,11 +113,16 @@ class DateChangeArrows extends PureComponent {<divclassName={`button-action-group ${rightArrowDisabled ? 'button-disabled' : ''}`}id="right-arrow-group"- title="Click and hold to animate forwards"onMouseDown={this.rightArrowDown}onMouseUp={this.rightArrowUp}onMouseLeave={this.rightArrowUp}>+ <HoverTooltip+ isMobile={isMobile}+ labelText="Click and hold to animate forwards"+ placement="top"+ target="right-arrow-group"+ /><svg width="24" height="30"><pathd="M 10.240764,0 24,15 10.240764,30 0,30 13.759236,15 0,0 10.240764,0 z"@@ -127,6 +139,7 @@ DateChangeArrows.propTypes = {leftArrowDisabled: PropTypes.bool,leftArrowDown: PropTypes.func,leftArrowUp: PropTypes.func,+ isMobile: PropTypes.bool,rightArrowDisabled: PropTypes.bool,rightArrowDown: PropTypes.func,rightArrowUp: PropTypes.func,diff --git a/web/js/containers/timeline/timeline.js b/web/js/containers/timeline/timeline.jsindex e6aec07fb..b2bda9fd9 100644--- a/web/js/containers/timeline/timeline.js+++ b/web/js/containers/timeline/timeline.js@@ -983,7 +983,7 @@ class Timeline extends React.Component {let mobileBottom = 10;if (isEmbedModeActive) {mobileLeft = 135;- mobileBottom = 4;+ mobileBottom = 5;}// positioning will change depending on a combination of:// 1) subdaily (mobile date picker width);@@ -1032,7 +1032,7 @@ class Timeline extends React.Component {isDataDownload,isDistractionFreeModeActive,isEmbedModeActive,- isSmallScreen,+ isMobile,isTourActive,leftArrowDisabled,parentOffset,@@ -1102,7 +1102,7 @@ class Timeline extends React.Component {{initialLoadComplete && !isDistractionFreeModeActive&& (<ErrorBoundary>- {isSmallScreen || isEmbedModeActive+ {isMobile || isEmbedModeActive/* Mobile Timeline Size */? (<div id="timeline-header" className="timeline-header-mobile">@@ -1123,6 +1123,7 @@ class Timeline extends React.Component {leftArrowDown={this.throttleDecrementDate}leftArrowUp={this.stopLeftArrow}leftArrowDisabled={leftArrowDisabled}+ isMobile={isMobile}rightArrowDown={this.throttleIncrementDate}rightArrowUp={this.stopRightArrow}rightArrowDisabled={rightArrowDisabled}@@ -1164,6 +1165,7 @@ class Timeline extends React.Component {leftArrowDown={this.throttleDecrementDate}leftArrowUp={this.stopLeftArrow}leftArrowDisabled={leftArrowDisabled}+ isMobile={isMobile}rightArrowDown={this.throttleIncrementDate}rightArrowUp={this.stopRightArrow}rightArrowDisabled={rightArrowDisabled}@@ -1395,12 +1397,12 @@ function mapStateToProps(state) {selectedZoom,timelineCustomModalOpen,} = date;- const { screenWidth, lessThan } = browser;+ const { screenWidth } = browser;const { isCompareA } = compare;const isCompareModeActive = compare.active;const { isDistractionFreeModeActive } = ui;const { isEmbedModeActive } = embed;- const isSmallScreen = lessThan.medium;+ const isMobile = browser.lessThan.medium;// handle active layer filtering and check for subdailyconst activeLayers = getActiveLayers(state);@@ -1469,7 +1471,7 @@ function mapStateToProps(state) {appNow,activeLayers: activeLayersFiltered,isTourActive: tour.active,- isSmallScreen,+ isMobile,screenWidth,draggerSelected: isCompareA ? 'selected' : 'selectedB',hasSubdailyLayers,@@ -1588,7 +1590,7 @@ Timeline.propTypes = {isDistractionFreeModeActive: PropTypes.bool,isEmbedModeActive: PropTypes.bool,isGifActive: PropTypes.bool,- isSmallScreen: PropTypes.bool,+ isMobile: PropTypes.bool,isTourActive: PropTypes.bool,leftArrowDisabled: PropTypes.bool,onUpdateEndDate: PropTypes.func,