diff --git a/app/src/frontend/map.js b/app/src/frontend/map.js index ba547a74..d21cab89 100644 --- a/app/src/frontend/map.js +++ b/app/src/frontend/map.js @@ -1,4 +1,4 @@ -import React, { Component } from 'react'; +import React, { Component, Fragment } from 'react'; import { Map, TileLayer, ZoomControl, AttributionControl } from 'react-leaflet-universal'; import '../../node_modules/leaflet/dist/leaflet.css' @@ -71,23 +71,25 @@ class ColouringMap extends Component { ) : null; return ( - - - - { highlightLayer } - - + + + + + { highlightLayer } + + + - + ); } }; diff --git a/app/src/frontend/theme-switcher.css b/app/src/frontend/theme-switcher.css index 85233048..f07f9d2c 100644 --- a/app/src/frontend/theme-switcher.css +++ b/app/src/frontend/theme-switcher.css @@ -1,10 +1,22 @@ .theme-switcher { z-index: 1000; position: absolute; - bottom: 30px; + bottom: 55px; right: 10px; float: right; background: white; + border-radius: 4px; +} + +@media (min-width: 380px){ + .theme-switcher { + bottom: 40px; + } +} +@media (min-width: 1020px){ + .theme-switcher { + bottom: 24px; + } } .theme-switcher .btn { margin: 0; diff --git a/app/src/frontend/theme-switcher.js b/app/src/frontend/theme-switcher.js index 2e55e235..51c45cce 100644 --- a/app/src/frontend/theme-switcher.js +++ b/app/src/frontend/theme-switcher.js @@ -4,7 +4,8 @@ import './theme-switcher.css'; const ThemeSwitcher = (props) => (
-