Interactive interface for browsing global, full-resolution satellite imagery
improved mobile sizes and styles
Jason Kent9f3c0a7047e6
diff --git a/web/css/mobile.css b/web/css/mobile.cssindex 6d572045c..af639fdc9 100644--- a/web/css/mobile.css+++ b/web/css/mobile.css@@ -46,10 +46,30 @@}a.staticLayers:not([href]):not([tabindex]) {- width: 100px;+ height: 45px;+ width: 56px;background-image: none;border-radius: 5px;- top: 55px;+ top: 58px;+ & .fa {+ font-size: 33px;+ position: absolute;+ left: 10px;+ top: 5px;+ color: #fff;+ }+ & span.layer-count {+ color: #fff;+ z-index: 9999;+ position: absolute;+ left: 17px;+ top: 12px;+ font-size: 18px;+ font-weight: 600;+ background: #333;+ border-radius: 50%;+ padding: 5px;+ }}a.staticLayers:not([href]):not([tabindex]):hover {diff --git a/web/css/timeline.css b/web/css/timeline.cssindex 95f6553ca..ca7d27951 100644--- a/web/css/timeline.css+++ b/web/css/timeline.css@@ -632,18 +632,23 @@ button:focus {background: rgba(40, 40, 40, 0.85);color: #fff;border: thin solid #333;- font-size: 17px;- font-family: 'Open Sans', sans-serif;- padding: 3px;+ font-size: 23px;+ padding: 13px 8px;border-radius: 5px;- line-height: 25px;white-space: nowrap;cursor: pointer;+ height: 42px;+ font-family: 'Roboto Mono', monospace;}--.datepicker-header,-.datepicker-navbar-btn {- font-weight: 700;+.datepicker-modal {+ & div, li {+ font-family: 'Roboto Mono', monospace;+ }+ .datepicker-header,+ .datepicker-navbar-btn {+ font-weight: 700;+ font-size: 18px;+ }}.datepicker.android-dark .datepicker-header {diff --git a/web/js/components/layer/product-picker/product-picker.js b/web/js/components/layer/product-picker/product-picker.jsindex cbe9d73f6..1974466ff 100644--- a/web/js/components/layer/product-picker/product-picker.js+++ b/web/js/components/layer/product-picker/product-picker.js@@ -312,13 +312,13 @@ class ProductPicker extends React.Component {const debouncedOnScroll = lodashDebounce((contentWrapperEl) => {updateScrollPosition(contentWrapperEl.scrollTop);}, 500);+ const detailTopBorderSize = 5;const bodyHeight = headerElement ? screenHeight - headerElement.offsetHeight : 0;let listHeight, listMinHeight, detailHeight;+if (isMobile) {- detailHeight = selectedLayer ? bodyHeight / 2 : bodyHeight;- listHeight = selectedLayer- ? (bodyHeight / 2) - 12- : bodyHeight - 8;+ detailHeight = !selectedLayer ? 0 : (bodyHeight * 0.6) - detailTopBorderSize;+ listHeight = selectedLayer ? bodyHeight * 0.4 : bodyHeight;listMinHeight = listHeight;} else {detailHeight = listHeight = bodyHeight - 80;diff --git a/web/js/components/sidebar/collapsed-button.js b/web/js/components/sidebar/collapsed-button.jsindex 1266ff563..c36df6994 100644--- a/web/js/components/sidebar/collapsed-button.js+++ b/web/js/components/sidebar/collapsed-button.js@@ -17,7 +17,10 @@ class CollapsedButton extends React.Component {title="Show Layer Selector"onClick={onclick}>- {'Layers (' + numberOfLayers.toString() + ')'}+ <i className="fa fa-layer-group" aria-hidden="true"></i>+ <span className='layer-count'>+ {numberOfLayers.toString()}+ </span></a></div>);