Interactive interface for browsing global, full-resolution satellite imagery
add dropdown height offset to scrollbar maxheight calc
Ed Plato28d4e8cea457
diff --git a/web/js/containers/sidebar/events.js b/web/js/containers/sidebar/events.jsindex b07c007cf..870e84201 100644--- a/web/js/containers/sidebar/events.js+++ b/web/js/containers/sidebar/events.js@@ -48,6 +48,9 @@ function Events(props) {const ALL_CATEGORY = 'All Event Categories';const [selectedCategory, selectCategory] = useState(ALL_CATEGORY);+ const dropdownHeight = 34;+ const scrollbarMaxHeight = height - dropdownHeight;+let showInactiveEventAlert = selected.id && !selected.date;const initRequests = () => {@@ -123,7 +126,7 @@ function Events(props) {</Dropdown><Scrollbars- style={{ maxHeight: `${height}px` }}+ style={{ maxHeight: `${scrollbarMaxHeight}px` }}><div id="wv-events">{(isLoading || hasRequestError) && (