Interactive interface for browsing global, full-resolution satellite imagery
Add forward and backward buttons to mobile datepicker
Bowei Yao7d5fc9f13c0c
diff --git a/web/css/timeline.css b/web/css/timeline.cssindex ca7d27951..782db15d0 100644--- a/web/css/timeline.css+++ b/web/css/timeline.css@@ -651,6 +651,18 @@ button:focus {}}+/* Mobile date change arrows */+.mobile-date-change-arrows-btn {+ position: absolute;+ left: 120px;+ bottom: 10px;+ background: rgba(40, 40, 40, 0.85);+ border: thin solid #333;+ padding: 3px;+ border-radius: 5px;+ cursor: pointer;+}+.datepicker.android-dark .datepicker-header {color: #fff !important;border-bottom: 2px solid #00457b !important;diff --git a/web/js/containers/timeline/timeline.js b/web/js/containers/timeline/timeline.jsindex 97af9b0a0..a9b38ebad 100644--- a/web/js/containers/timeline/timeline.js+++ b/web/js/containers/timeline/timeline.js@@ -969,13 +969,29 @@ class Timeline extends React.Component {{initialLoadComplete? <ErrorBoundary>{isSmallScreen- ? <MobileDatePicker- date={selectedDate}- startDateLimit={timelineStartDateLimit}- endDateLimit={timelineEndDateLimit}- onDateChange={this.onDateChange}- hasSubdailyLayers={hasSubdailyLayers}- />+ ? <div id="timeline-header">+ <div id="date-selector-main">+ <MobileDatePicker+ date={selectedDate}+ startDateLimit={timelineStartDateLimit}+ endDateLimit={timelineEndDateLimit}+ onDateChange={this.onDateChange}+ hasSubdailyLayers={hasSubdailyLayers}+ />+ </div>+ <div className="mobile-date-change-arrows-btn">+ <div id="zoom-buttons-group">+ <DateChangeArrows+ leftArrowDown={this.throttleDecrementDate}+ leftArrowUp={this.stopLeftArrow}+ leftArrowDisabled={leftArrowDisabled}+ rightArrowDown={this.throttleIncrementDate}+ rightArrowUp={this.stopRightArrow}+ rightArrowDisabled={rightArrowDisabled}+ />+ </div>+ </div>+ </div>: <section id="timeline" className="timeline-inner clearfix"><div id="timeline-header"className={hasSubdailyLayers ? 'subdaily' : ''}