Interactive interface for browsing global, full-resolution satellite imagery
style tweaks
Jason Kente2296e24fad8
diff --git a/web/css/sidebar-panel.css b/web/css/sidebar-panel.cssindex 7b46cca47..f521d59aa 100644--- a/web/css/sidebar-panel.css+++ b/web/css/sidebar-panel.css@@ -119,10 +119,6 @@ a.atexpand {text-transform: uppercase;}-.sidebar-panel .category {- overflow: hidden;-}-.sidebar-panel li.item {padding: 0;cursor: move;@@ -137,12 +133,6 @@ a.atexpand {background: rgba(220, 220, 220, 1);}-.categoryContainer {- display: block;- width: 100%;- overflow: hidden;-}-.mCustomScrollBox > .mCSB_scrollTools {right: -6px;}@@ -176,6 +166,7 @@ li.item ul.palette li {.sidebar-panel ul.category {position: relative;overflow: hidden;+ background: #333;}.sidebar-panel ul.category li h3,diff --git a/web/css/sidebar.css b/web/css/sidebar.cssindex d39d73b76..8ee678870 100644--- a/web/css/sidebar.css+++ b/web/css/sidebar.css@@ -128,7 +128,7 @@}#productsHolder footer {-padding: 5px;+ padding: 5px;width: initial;}footer .product-buttons {@@ -145,12 +145,22 @@ footer .compare-toggle-button {right: 5px;border-bottom: none;}+.layer-group-baselayers {+ margin-top: 10px;+}.layer-group-case {overflow: hidden;+ .layer-group-header {+ background: #333;+ margin-top: 4px;+ border: 1px solid #444;+ }.layer-group-title {display: inline-block;- margin: 5px 0 5px;- font-size: 14px;+ margin: 4px 0;+ font-size: 13px;+ max-width: 236px;+ line-height: 15px;}> .svg-inline--fa,.layer-group-icons > .svg-inline--fa {@@ -201,6 +211,7 @@ footer .compare-toggle-button {}.layer-group-more-options {display: inline;+ top: -2px;> button {background: transparent;border: none;diff --git a/web/js/containers/sidebar/layers-container.js b/web/js/containers/sidebar/layers-container.jsindex 33922958e..0ac9fd03d 100644--- a/web/js/containers/sidebar/layers-container.js+++ b/web/js/containers/sidebar/layers-container.js@@ -102,6 +102,12 @@ function LayersContainer (props) {</DragDropContext>);+ const scrollContainerStyles = {+ maxHeight: `${height}px`,+ overflowY: 'auto',+ paddingBottom: '4px',+ };+return isActive && (<><Switch@@ -110,7 +116,7 @@ function LayersContainer (props) {active={groupOverlays}toggle={toggleOverlayGroups}/>- <div style={{ maxHeight: `${height}px`, overflowY: 'auto' }}>+ <div style={scrollContainerStyles}><div className="layer-container sidebar-panel">{groupOverlays ? renderOverlayGroups() : (@@ -126,15 +132,17 @@ function LayersContainer (props) {)}{baselayers.length && (- <LayerList- title="Base Layers"- groupId="baselayers"- collapsed={baselayersCollapsed}- toggleCollapse={() => toggleBaselayersCollapsed(!baselayersCollapsed)}- compareState={compareState}- layers={baselayers}- layerSplit={overlays.length}- />+ <div className="layer-group-baselayers">+ <LayerList+ title="Base Layers"+ groupId="baselayers"+ collapsed={baselayersCollapsed}+ toggleCollapse={() => toggleBaselayersCollapsed(!baselayersCollapsed)}+ compareState={compareState}+ layers={baselayers}+ layerSplit={overlays.length}+ />+ </div>)}</div></div>