Skip to content

Commit

Permalink
Merge pull request #63 from aodn/bug/quick-fixing
Browse files Browse the repository at this point in the history
🎨 quick fixing
  • Loading branch information
utas-raymondng authored Jun 24, 2024
2 parents c0f5e41 + 88d419e commit 980312e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
7 changes: 5 additions & 2 deletions src/components/result/ListResultCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import {
CardActions,
CardContent,
CardMedia,
Chip,
Grid,
Typography,
} from "@mui/material";
Expand Down Expand Up @@ -64,7 +63,11 @@ const ListResultCard = (props: ResultCardProps) => {

// TODO: buttons are changed, but the behaviors are fake / wrong
return (
<Card variant="outlined" data-testid="result-card-list">
<Card
variant="outlined"
data-testid="result-card-list"
sx={{ width: "99%" }}
>
<CardActionArea
onClick={() => {
const searchParams = new URLSearchParams();
Expand Down
8 changes: 3 additions & 5 deletions src/pages/search-page/subpages/MapSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@ import MenuControl, {
} from "../../../components/map/mapbox/controls/MenuControl";
import React from "react";
import { MapboxEvent as MapEvent } from "mapbox-gl";
import VectorTileLayers from "../../../components/map/mapbox/layers/VectorTileLayers";
import { OGCCollection } from "../../../components/common/store/searchReducer";
import Layers from "../../../components/map/mapbox/layers/Layers";

const mapContainerId = "map-container-id";

Expand Down Expand Up @@ -56,9 +54,9 @@ const MapSection: React.FC<SearchPageProps> = ({
<ScaleControl />
<MenuControl menu={<BaseMapSwitcher />} />
</Controls>
<Layers>
<VectorTileLayers collections={layers} />
</Layers>
{/*<Layers>*/}
{/* <VectorTileLayers collections={layers} />*/}
{/*</Layers>*/}
</Map>
</Paper>
</Grid>
Expand Down

0 comments on commit 980312e

Please sign in to comment.