Skip to content

Commit

Permalink
fix: fix fullscreen css (#487)
Browse files Browse the repository at this point in the history
  • Loading branch information
yihong0618 authored Sep 10, 2023
1 parent 6a636f0 commit a0ada4b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
12 changes: 7 additions & 5 deletions src/components/RunMap/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
import MapboxLanguage from '@mapbox/mapbox-gl-language';
import React, { useRef, useCallback } from 'react';
import ReactMapGL, { Layer, Source, FullscreenControl, MapRef } from 'react-map-gl';
import ReactMapGL, {
Layer,
Source,
FullscreenControl,
MapRef,
} from 'react-map-gl';
import useActivities from '@/hooks/useActivities';
import {
MAP_LAYER_LIST,
Expand Down Expand Up @@ -92,10 +97,7 @@ const RunMap = ({
ref={mapRefCallback}
mapboxApiAccessToken={MAPBOX_TOKEN}
>
<RunMapButtons
changeYear={changeYear}
thisYear={thisYear}
/>
<RunMapButtons changeYear={changeYear} thisYear={thisYear} />
<FullscreenControl className={styles.fullscreenButton} />
<Source id="data" type="geojson" data={geoData}>
<Layer
Expand Down
4 changes: 3 additions & 1 deletion src/components/RunMap/style.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,12 @@
}

.fullscreenButton {
display: inline-block;
position: absolute;
top: 0rem;
right: 0rem;
opacity: 0.3;
padding: 1.2rem;
padding: 0.8rem;
}

.runTitle {
Expand Down

0 comments on commit a0ada4b

Please sign in to comment.