diff --git a/explorer-v2/src/components/worldMap/WorldMap.tsx b/explorer-v2/src/components/worldMap/WorldMap.tsx index f1f2a15533..162d9cac72 100644 --- a/explorer-v2/src/components/worldMap/WorldMap.tsx +++ b/explorer-v2/src/components/worldMap/WorldMap.tsx @@ -2,6 +2,7 @@ import { scaleLinear } from "d3-scale"; import * as React from "react"; +import Image from "next/image"; import { ComposableMap, Geographies, @@ -13,13 +14,12 @@ import { fetchWorldMapCountries } from "@/app/api"; import AddIcon from "@mui/icons-material/Add"; import RemoveIcon from "@mui/icons-material/Remove"; import RestartAltIcon from "@mui/icons-material/RestartAlt"; -import { IconButton, Skeleton, Typography } from "@mui/material"; +import { IconButton, Skeleton, Typography, Box } from "@mui/material"; import { useTheme } from "@mui/material/styles"; import { useQuery } from "@tanstack/react-query"; import type { CountryDataResponse } from "../../app/api/types"; import MAP_TOPOJSON from "../../assets/world-110m.json"; import ExplorerCard from "../cards/ExplorerCard"; -import Image from "next/image"; const mapPlaceholderDark = "/explorer/map-placeholder-dark.png"; const mapPlaceholderLight = "/explorer/map-placeholder-light.png"; @@ -131,14 +131,32 @@ export const WorldMap = (): JSX.Element => { return ( .MuiCardContent-root": { + height: { + xs: "200px", + sm: "auto", + }, + aspectRatio: { + xs: "unset", + sm: "16/7", + }, + }, + }} > -
{ style={{ backgroundColor: isDarkMode ? "#000000" : theme.palette.pine[25], width: "100%", - height: "auto", + height: "100%", }} - viewBox="0, 50, 800, 350" + viewBox="0 0 800 400" projection="geoMercator" projectionConfig={{ - scale: 100, + scale: 130, }} > {
- +