Interactive interface for browsing global, full-resolution satellite imagery
remove screenHeight update on browsers less than medium
Edward Platodae1d00ebdfd
diff --git a/web/js/containers/modal.js b/web/js/containers/modal.jsindex 913204152..44bb6e07c 100644--- a/web/js/containers/modal.js+++ b/web/js/containers/modal.js@@ -171,6 +171,7 @@ function mapStateToProps(state) {bodyTemplate = state[template];isTemplateModal = true;}+ const isMobile = state.browser.lessThan.medium;return {isOpen: isOpen,@@ -178,8 +179,8 @@ function mapStateToProps(state) {headerText,isCustom,id,- isMobile: state.browser.lessThan.medium,- screenHeight: state.browser.screenHeight,+ isMobile,+ screenHeight: isMobile ? undefined : state.browser.screenHeight,bodyTemplate,isTemplateModal,customProps