Skip to content

Commit c64a411

Browse files
committed
fix background img import issue maybe again
1 parent e7e57d1 commit c64a411

File tree

3 files changed

+5
-12
lines changed

3 files changed

+5
-12
lines changed

src/App.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,11 @@ $border-radius: 6px;
7979
.leaflet-touch .leaflet-bar a {
8080
background-size: 64px;
8181
}
82+
83+
.leaflet-touch .leaflet-bar a {
84+
background-image: url("images/LUTI_Zoom_Icon.svg");
85+
}
86+
8287
.leaflet-touch .leaflet-bar a:first-child {
8388
border-top-left-radius: $border-radius;
8489
border-top-right-radius: $border-radius;

src/components/InfoBox.js

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,6 @@ export default function InfoBox({ desc, displayMode, title, url }) {
1616

1717
const ref = useRef(null);
1818

19-
useEffect(() => {
20-
const controlLinks = document.querySelectorAll(
21-
".leaflet-touch .leaflet-bar a"
22-
);
23-
if (!controlLinks || controlLinks.length !== 2) return;
24-
25-
const backgroundImage = "url(/LUTI_Zoom_Icon.svg)";
26-
27-
controlLinks[0].style.backgroundImage = backgroundImage;
28-
controlLinks[1].style.backgroundImage = backgroundImage;
29-
}, []);
30-
3119
useEffect(() => {
3220
const intro = document.querySelector(".leaflet-control-zoom");
3321
const height = ref.current.clientHeight;
File renamed without changes.

0 commit comments

Comments
 (0)