j40-cejst-2/client/src
Vim f791a25a76
Fix territory shortcuts on mobile (#1145)
* Fix territory shortcuts on mobile

- remove zoom controls on mobile
- center search on mobile
- move up the territoriy shortcuts on mobile
- increase height of map on mobile in portrait mode
- update tests

* Reduce map height

- troubleshooting staging map height

* Removes null render in map

* Comment out conditional render of NavControls

* Revert height changes

* Remove MapSearch component

* Remove territory styling

* Console.log the device width

* Add logging width/mobile onLoad()

* Add isMobile to map height prop

* Swap conditional order of map height

* Add isMobileMapState to map height

* Add back all changes and force height to non-100%

- staging mobile seems to have height at 100% regardless of conditional. This will test this.
- this will break desktop on staging and is purposeful

* Remove API key for mapbox

* Add height as 90% to check conditional

* trying isMobile and windowWidth

* is not mobile and width > 1024

* use a function instead of a conditional

* Modify getHeight function

- remove Cypress tests from GHA to speed up build / deplot to staging

* Console.log windowWidth and constants.desktop

* Add boolean console.log

* Place values in DOM itself

* add height to div

* log out types

* add types nicely formatted

* Move height styling on map from inline to parent

- use a media query to detect mobile and set the map parents height via SASS

* Add back cypress tests
2022-01-31 08:14:02 -08:00
..
components Fix territory shortcuts on mobile (#1145) 2022-01-31 08:14:02 -08:00
contexts Adds dataset cards to Methodology page (#442) 2021-08-02 08:49:49 -07:00
data Fix territory shortcuts on mobile (#1145) 2022-01-31 08:14:02 -08:00
images Add 4 additional territory buttons (#956) 2021-12-06 19:58:04 -08:00
intl Display SurveyMonkey survey (#867) 2021-11-12 09:39:04 -08:00
pages Add external link icons & all outstanding changes from Living copy (#1173) 2022-01-26 13:12:33 -08:00
styles Add additional base layers behind feature flags (#945) 2022-01-13 12:25:43 -08:00
test fix #249 header 2 (#425) 2021-08-02 07:48:19 -07:00