Fix canvas not taking up full space in Regional and Global map views
This commit is contained in:
@@ -1,6 +1,5 @@
|
|||||||
import React from "react";
|
import React from "react";
|
||||||
import { MapContainer, TileLayer, Marker, Popup } from "react-leaflet";
|
import { MapContainer, TileLayer, Marker, Popup } from "react-leaflet";
|
||||||
// import 'leaflet/dist/leaflet.css';
|
|
||||||
|
|
||||||
export default function GlobalMapCanvas() {
|
export default function GlobalMapCanvas() {
|
||||||
const position = [45.61142478054226, -122.49630033167544]; // [latitude, longitude]
|
const position = [45.61142478054226, -122.49630033167544]; // [latitude, longitude]
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
import React from "react";
|
import React from "react";
|
||||||
import { MapContainer, TileLayer, Marker, Popup } from "react-leaflet";
|
import { MapContainer, TileLayer, Marker, Popup } from "react-leaflet";
|
||||||
// import 'leaflet/dist/leaflet.css';
|
|
||||||
|
|
||||||
export default function GlobalMapCanvas() {
|
export default function GlobalMapCanvas() {
|
||||||
const position = [45.61142478054226, -122.49630033167544]; // [latitude, longitude]
|
const position = [45.61142478054226, -122.49630033167544]; // [latitude, longitude]
|
||||||
|
|||||||
@@ -49,7 +49,8 @@ export default function Dashboard() {
|
|||||||
<>
|
<>
|
||||||
<Grid css={styles}
|
<Grid css={styles}
|
||||||
templateRows="1fr 11fr"
|
templateRows="1fr 11fr"
|
||||||
templateColumns="1fr 20fr"
|
// templateColumns="1fr 20fr"
|
||||||
|
templateColumns="auto 1fr"
|
||||||
height="100vh"
|
height="100vh"
|
||||||
width="100vw"
|
width="100vw"
|
||||||
>
|
>
|
||||||
|
|||||||
Reference in New Issue
Block a user