Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Smart-handoffs panel now correctly formats height of the side panel based on number of available layers to download. Scrollbar visble when items overflow.

Stephan Wlodarczyk8d588fcb4b2f
diff --git a/web/css/smart-handoff.css b/web/css/smart-handoff.css
index ccee8f396..f6b26cdcf 100644
--- a/web/css/smart-handoff.css
+++ b/web/css/smart-handoff.css
@@ -1,5 +1,9 @@
/** Smart handoff side panel **/
+#smart-handoff-side-panel {
+ overflow-y: scroll;
+ max-height: calc(var(--vh, 1vh) * 100 - 200px);
+}
#smart-handoff-side-panel h1 {
margin-top: 10px;
margin-left: 5px;
@@ -21,12 +25,12 @@
}
#esd-notification {
display: block;
- margin: 10px 31px;
- text-align: justify;
- font-size: 7pt;
- font-style: italic;
- color: #7bf;
+ margin: 10px 25px;
+ font-size: 8.5pt;
+ text-align: center;
+ color: white;
}
+
#smart-handoff-layer-list {
margin-top: 15px;
display: block;
diff --git a/web/js/containers/sidebar/smart-handoff.js b/web/js/containers/sidebar/smart-handoff.js
index b71aded13..b7ebb8f14 100644
--- a/web/js/containers/sidebar/smart-handoff.js
+++ b/web/js/containers/sidebar/smart-handoff.js
@@ -214,14 +214,18 @@ class SmartHandoff extends Component {
<h1>Select an available layer to download:</h1>
<div id="esd-notification">
- Downloading layer granules and map imagery will be performed using NASA's Earthdata Search application.
+ Downloading data will be performed using NASA's Earthdata Search application.
+ <br />
+ {' '}
+ <br />
+ <a href="https://search.earthdata.nasa.gov" target="_blank" rel="noopener noreferrer">search.earthdata.nasa.gov</a>
</div>
<hr />
<div id="smart-handoff-layer-list">
{activeLayers.map((layer, index) => {
- if (layer.conceptId && layer.visible) {
+ if (layer.conceptId) {
return (
<div className="layer-item">
<input
@@ -281,28 +285,6 @@ class SmartHandoff extends Component {
valid={selectedLayer && (totalGranules !== 0)}
/>
- {/** Listing of layers that are excluded from downloading */}
- { areHiddenLayersAvailable > 0 && (
- <div>
- <hr />
- <div id="smart-handoff-hidden-layer-list">
- <h1>Hidden layers:</h1>
- {activeLayers.map((layer, i) => {
- if (layer.conceptId && !layer.visible) {
- return (
- <div className="hidden-layer">
- <p>{layer.title}</p>
- <p>{layer.subtitle}</p>
- </div>
- );
- }
- return null;
- })}
- </div>
- </div>
- )}
-
-
{ /** Image crop overlay used to determine user's area of interest */ }
{ showBoundingBox && (
<Crop