Interactive interface for browsing global, full-resolution satellite imagery
restructure prod html #577
Benjamin King6ba509ba880f
diff --git a/web/css/layers.css b/web/css/layers.cssindex a81697da3..29c1b430a 100644--- a/web/css/layers.css+++ b/web/css/layers.css@@ -201,6 +201,9 @@}/* Categories view */+.layer-modal-content .categories-nav {+ margin-right: 13px;+}.layer-modal-content .categories-nav .nav-item {height: 31px;line-height: 35px;@@ -670,10 +673,15 @@width: 100%;}.custom-layer-dialog .modal-body {- padding-top: 0;+ padding: 0 0 0 13px;}.custom-layer-dialog .category-masonry-case {overflow: hidden;+ padding: 13px;+}+.custom-layer-dialog .category-masonry-case,+.custom-layer-dialog .layers-all {+ padding: 0 13px 13px 0;}.layer-bread-crumb .breadcrumb {margin-bottom: 0;diff --git a/web/index.html b/web/index.htmlindex b4704c086..759a60bf6 100644--- a/web/index.html+++ b/web/index.html@@ -9,6 +9,7 @@ Copyright (C) 2013 - 2016 United States Government as represented by the AdminisLicensed under the NASA Open Source Agreement, Version 1.3 (http://opensource.gsfc.nasa.gov/nosa.php)--><html lang="en">+<head><title>@OFFICIAL_NAME@</title><meta http-equiv="X-UA-Compatible" content="IE=edge">@@ -48,13 +49,6 @@ Licensed under the NASA Open Source Agreement, Version 1.3 (http://opensource.gs<div data-role="page" id="app"></div><section id="layer-modal" class="layer-modal">- <header id="layer-modal-header" class="layer-modal-header"></header>- <div id="layer-modal-content" class="layer-modal-content">- <div id="layer-categories" class="layer-categories"></div>- <div id="selected-category" class="selected-category"></div>- <div id="layers-all" class="layers-all"></div>- </div>- <footer></footer></section><div id="wv-tour-content" class="tour-content"></div><div id="wv-image-top" class="wv-image-coords"></div>diff --git a/web/js/components/layer/product-picker.js b/web/js/components/layer/product-picker.jsindex b2291ef73..5762e757d 100644--- a/web/js/components/layer/product-picker.js+++ b/web/js/components/layer/product-picker.js@@ -144,7 +144,8 @@ class ProductPicker extends React.Component {layerConfig,modalView} = this.props;-+ const isCategoryDisplay =+ listType === 'category' && selectedProjection === 'geographic';return (<ModalisOpen={isOpen}@@ -164,36 +165,40 @@ class ProductPicker extends React.Component {}}/></ModalHeader>- <Scrollbars style={{ maxHeight: height - 40 + 'px' }}>- <ModalBody>- <div id="layer-modal-content" className="layer-modal-content">- {listType === 'category' &&- selectedProjection === 'geographic' ? (- <React.Fragment>- <Nav tabs id="categories-nav" className="categories-nav">- {Object.keys(categoryConfig).map(sortKey => (- <NavItem- key={sortKey}- className="layer-category-navigation"- active={sortKey === categoryType}- >- <NavLink onClick={this.sort.bind(this, sortKey)}>- {sortKey === 'scientific'- ? 'Science Disciplines'- : sortKey}- </NavLink>- </NavItem>- ))}- </Nav>- <CategoryList- categories={lodashValues(categoryConfig[categoryType])}- measurementConfig={measurementConfig}- drawMeasurements={this.drawMeasurements.bind(this)}- hasMeasurementSource={hasMeasurementSource}- categoryType={categoryType}- width={width}- />- </React.Fragment>++ <ModalBody>+ <div id="layer-modal-content" className="layer-modal-content">+ {isCategoryDisplay ? (+ <Nav tabs id="categories-nav" className="categories-nav">+ {Object.keys(categoryConfig).map(sortKey => (+ <NavItem+ key={sortKey}+ className="layer-category-navigation"+ active={sortKey === categoryType}+ >+ <NavLink onClick={this.sort.bind(this, sortKey)}>+ {sortKey === 'scientific'+ ? 'Science Disciplines'+ : sortKey}+ </NavLink>+ </NavItem>+ ))}+ </Nav>+ ) : (+ ''+ )}++ <Scrollbars style={{ maxHeight: height - 40 + 'px' }}>+ <div>+ {isCategoryDisplay ? (+ <CategoryList+ categories={lodashValues(categoryConfig[categoryType])}+ measurementConfig={measurementConfig}+ drawMeasurements={this.drawMeasurements.bind(this)}+ hasMeasurementSource={hasMeasurementSource}+ categoryType={categoryType}+ width={width}+ />) : (<LayerListaddLayer={addLayer}@@ -214,9 +219,10 @@ class ProductPicker extends React.Component {)}/>)}- </div>- </ModalBody>- </Scrollbars>+ </div>+ </Scrollbars>+ </div>+ </ModalBody></Modal>);}