Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
92 changes: 46 additions & 46 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
"@emotion/react": "^11.14.0",
"@emotion/server": "^11.11.0",
"@emotion/styled": "^11.14.1",
"@mui/icons-material": "^7.3.11",
"@mui/material": "^7.3.11",
"@mui/material-nextjs": "^7.3.10",
"@mui/icons-material": "^9.0.1",
"@mui/material": "^9.0.1",
"@mui/material-nextjs": "^9.0.1",
"@tanstack/react-query": "^5.99.1",
"@turf/turf": "^7.3.5",
"@types/cors": "^2.8.19",
Expand Down
20 changes: 12 additions & 8 deletions website/src/components/Generator/internal/Panel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,12 @@ function Panel(props: Props) {
<MUI.TextField
size="small"
disabled={state.options.projection !== "cartesian"}
InputProps={{
startAdornment: (
<MUI.InputAdornment position="start">W</MUI.InputAdornment>
),
slotProps={{
input: {
startAdornment: (
<MUI.InputAdornment position="start">W</MUI.InputAdornment>
),
},
}}
value={state.options.dimensions.width}
onChange={(ev) => {
Expand All @@ -113,10 +115,12 @@ function Panel(props: Props) {
<MUI.TextField
size="small"
disabled={state.options.projection !== "cartesian"}
InputProps={{
startAdornment: (
<MUI.InputAdornment position="start">H</MUI.InputAdornment>
),
slotProps={{
input: {
startAdornment: (
<MUI.InputAdornment position="start">H</MUI.InputAdornment>
),
},
}}
value={state.options.dimensions.height}
onChange={(ev) => {
Expand Down
38 changes: 23 additions & 15 deletions website/src/pages/mutations.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -154,10 +154,12 @@ export default function Page() {

return (
<Box
display="grid"
gridTemplateColumns="300px 1fr"
height="100vh"
overflow="hidden"
sx={{
display: "grid",
gridTemplateColumns: "300px 1fr",
height: "100vh",
overflow: "hidden",
}}
>
<Head>
<title>Municipality Mutations - Swiss Maps</title>
Expand Down Expand Up @@ -188,7 +190,7 @@ export default function Page() {
>
<Accordion sx={{ mb: 2 }} disableGutters elevation={0}>
<AccordionSummary expandIcon={<ExpandMore />}>
<Typography component="h1" variant="h5" mb={0}>
<Typography component="h1" variant="h5" sx={{ mb: 0 }}>
Municipality Mutations
</Typography>
</AccordionSummary>
Expand Down Expand Up @@ -341,17 +343,21 @@ export default function Page() {
</List>
<Box sx={{ p: 2 }}>
<Box
display="grid"
gridTemplateColumns="1fr 1fr"
columnGap="1rem"
height="100%"
sx={{
display: "grid",
gridTemplateColumns: "1fr 1fr",
columnGap: "1rem",
height: "100%",
}}
>
<div>
<Typography variant="h5">{geoDataYears[0]}</Typography>
<Box
height="calc(100% - 2rem)"
position="relative"
border="1px solid #ccc"
sx={{
height: "calc(100% - 2rem)",
position: "relative",
border: "1px solid #ccc",
}}
>
<MutationsMap
viewState={viewState}
Expand All @@ -366,9 +372,11 @@ export default function Page() {
<div>
<Typography variant="h5">{geoDataYears[1]}</Typography>
<Box
height="calc(100% - 2rem)"
position="relative"
border="1px solid #ccc"
sx={{
height: "calc(100% - 2rem)",
position: "relative",
border: "1px solid #ccc",
}}
>
<MutationsMap
geoData={geoData2}
Expand Down