Skip to content

Commit

Permalink
Fix boreholesNumberPreview font
Browse files Browse the repository at this point in the history
  • Loading branch information
MiraGeowerkstatt committed Aug 15, 2024
1 parent bffce19 commit b0ee9f0
Show file tree
Hide file tree
Showing 13 changed files with 14 additions and 150 deletions.
1 change: 0 additions & 1 deletion src/client/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no" />
<meta name="theme-color" content="#000000" />
<link rel="shortcut icon" href="/favicon.ico" />
<link href="/fonts/fonts.css" rel="stylesheet" />
<link href="https://fonts.googleapis.com/css2?family=Inter:[email protected]&display=swap" rel="stylesheet" />

<style>
Expand Down
93 changes: 0 additions & 93 deletions src/client/public/fonts/OFL.txt

This file was deleted.

40 changes: 0 additions & 40 deletions src/client/public/fonts/fonts.css

This file was deleted.

Binary file removed src/client/public/fonts/lato-v17-latin-700.woff
Binary file not shown.
Binary file removed src/client/public/fonts/lato-v17-latin-700.woff2
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed src/client/public/fonts/lato-v17-latin-italic.woff
Binary file not shown.
Binary file removed src/client/public/fonts/lato-v17-latin-italic.woff2
Binary file not shown.
Binary file not shown.
Binary file removed src/client/public/fonts/lato-v17-latin-regular.woff2
Binary file not shown.
10 changes: 3 additions & 7 deletions src/client/src/index.css
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
/* body {
margin: 0;
padding: 0;
font-family: sans-serif;
} */

.ol-popup {
position: absolute;
background-color: white;
Expand Down Expand Up @@ -138,7 +134,7 @@
cursor: default !important;
}

.selectable:hover {
.selectable:hover {
background-color: rgb(233, 233, 233);
}

Expand All @@ -149,4 +145,4 @@

.Mui-checked {
color: black !important;
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { NumericFormat } from "react-number-format";
import { FC } from "react";
import { CircularProgress } from "@mui/material";
import { CircularProgress, Typography } from "@mui/material";
import { capitalizeFirstLetter } from "../../../utils.ts";
import { useTranslation } from "react-i18next";

Expand All @@ -13,17 +13,19 @@ export const BoreholeNumbersPreview: FC<BoreholeNumbersPreviewProps> = ({ isFetc
const { t } = useTranslation();
return (
<>
{capitalizeFirstLetter(t("boreholes"))}:{" "}
<Typography>{capitalizeFirstLetter(t("boreholes"))}: </Typography>
{isFetching ? (
<CircularProgress sx={{ marginLeft: "15px", width: "15px !important", height: "15px !important" }} />
) : (
<NumericFormat
data-cy="boreholes-number-preview"
value={boreholeCount}
thousandSeparator="'"
displayType="text"
style={{ marginLeft: "0.5em" }}
/>
<Typography>
<NumericFormat
data-cy="boreholes-number-preview"
value={boreholeCount}
thousandSeparator="'"
displayType="text"
style={{ marginLeft: "0.5em" }}
/>
</Typography>
)}
</>
);
Expand Down

0 comments on commit b0ee9f0

Please sign in to comment.