Interactive interface for browsing global, full-resolution satellite imagery
make sure layer-info element is full height of layer-main containing element. prevent scrollbar-visible class being added to sidebar when layers are added before height of scroll container is recalculated
Jason Kent1a8bdbdce1dc
diff --git a/web/css/sidebar-panel.css b/web/css/sidebar-panel.cssindex e4dd00109..095f88304 100644--- a/web/css/sidebar-panel.css+++ b/web/css/sidebar-panel.css@@ -381,6 +381,7 @@ li.item.productsitem.inmotion,.productsitem {& .layer-info {background-color: #ccc;+ min-height: 40px;}& .layer-main {width: auto;diff --git a/web/js/components/util/scrollbar.js b/web/js/components/util/scrollbar.jsindex 33f5d6186..a84d2cf88 100644--- a/web/js/components/util/scrollbar.js+++ b/web/js/components/util/scrollbar.js@@ -40,7 +40,7 @@ export default function Scrollbars(props) {if (!ref || !ref.current) {return;}- toggleVisibleClass(ref.current);+ setTimeout(() => { toggleVisibleClass(ref.current); }, 100);setScrollTop(ref.current);});