diff --git a/CHANGELOG.md b/CHANGELOG.md
index c072d76d9..ea3847d48 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -13,6 +13,7 @@
- _view-sync_ did not clean up unpublished boreholes.
- User permissions were not checked when detaching files from boreholes.
+- The basemap selector buttons were not displayed correctly on hover
## v2.1.870 - 2024-09-27
diff --git a/src/client/src/components/basemapSelector/basemapSelector.tsx b/src/client/src/components/basemapSelector/basemapSelector.tsx
index 0a246af9b..e91297070 100644
--- a/src/client/src/components/basemapSelector/basemapSelector.tsx
+++ b/src/client/src/components/basemapSelector/basemapSelector.tsx
@@ -16,18 +16,25 @@ const BasemapSelectorBox = styled(Box)({
borderRadius: "100px",
});
-const BasemapButton = styled(Button)({
+const BasemapSelectorButton = styled(Button)({
borderRadius: "50%",
padding: 0,
animationTimingFunction: "ease-in-out",
animationDuration: "0.4s",
minWidth: 0,
- margin: 0,
"&:hover": {
opacity: "60%",
},
});
+const BasemapButton = styled(BasemapSelectorButton)({
+ height: "40px",
+ width: "40px",
+ marginRight: theme.spacing(1.5),
+ marginTop: theme.spacing(0.5),
+ marginBottom: theme.spacing(0.5),
+});
+
const ImageBox = styled(Box)({
borderRadius: "50%",
display: "block",
@@ -75,8 +82,6 @@ export const BasemapSelector = memo(({ marginBottom }: { marginBottom: string })
{layer && }
@@ -96,7 +101,7 @@ export const BasemapSelector = memo(({ marginBottom }: { marginBottom: string })
) : (
-
+
{currentBasemapName == "nomap" ? (
) : (
@@ -104,7 +109,7 @@ export const BasemapSelector = memo(({ marginBottom }: { marginBottom: string })
{currentBasemapName && }
)}
-
+
)}
);