diff --git a/app/about/page.tsx b/app/about/page.tsx index b999f9c..7865861 100644 --- a/app/about/page.tsx +++ b/app/about/page.tsx @@ -2,7 +2,7 @@ import Link from 'next/link'; export default function About() { return ( -
+

Informationen über diese Applikation

Diese Applikation unterstützt die Planung oberflächennaher geothermischer Anlagen. Es können geothermisch diff --git a/app/ews/potenzialberechnung/calculations-menu.tsx b/app/ews/potenzialberechnung/calculations-menu.tsx index 8dd8cda..dca2c3f 100644 --- a/app/ews/potenzialberechnung/calculations-menu.tsx +++ b/app/ews/potenzialberechnung/calculations-menu.tsx @@ -352,11 +352,11 @@ export default forwardRef(function CalculationsMenu(

Berechnungsmenü {opened ? '-' : '+'}
@@ -366,7 +366,7 @@ export default forwardRef(function CalculationsMenu( }`} ref={innerRef} > -
+
diff --git a/app/ews/potenzialberechnung/panel-potenzialkarte.tsx b/app/ews/potenzialberechnung/panel-potenzialkarte.tsx index 1f64a9d..8407c5f 100644 --- a/app/ews/potenzialberechnung/panel-potenzialkarte.tsx +++ b/app/ews/potenzialberechnung/panel-potenzialkarte.tsx @@ -44,7 +44,7 @@ export default function Panel() { const dispatch = useAppDispatch(); - const isTablet = useMediaQuery({ maxWidth: 1024 }); + const isTablet = useMediaQuery({ maxWidth: 1180 }); // initialize query handlers useEffect(() => { @@ -104,9 +104,9 @@ export default function Panel() { return (
1 ? 'bottom-4' : '' - } w-full md:w-1/3 xl:w-1/4 pl-8 md:pl-0 z-50`} + className={`absolute top-4 right-4 w-full md:w-1/3 xl:w-1/4 pl-8 md:pl-0 ${ + opened && isTablet ? 'bottom-4' : '' + } ${opened && Object.keys(computationResult).length > 1 ? 'bottom-4' : ''}`} >
{opened ? '-' : '+'}
diff --git a/app/ews/potenzialberechnung/potenzialkarte.tsx b/app/ews/potenzialberechnung/potenzialkarte.tsx index 72b81a4..9582e3b 100644 --- a/app/ews/potenzialberechnung/potenzialkarte.tsx +++ b/app/ews/potenzialberechnung/potenzialkarte.tsx @@ -1,3 +1,5 @@ +'use client'; + import { useRef, useEffect, useState, Dispatch, SetStateAction } from 'react'; import { useMediaQuery } from 'react-responsive'; @@ -226,7 +228,7 @@ export default function MapComponent() { }); let sketch = new Sketch({ - // container: calculationsMenuRef.current, + container: calculationsMenuRef.current, layer: pointGraphicsLayer, view: view, availableCreateTools: ['point'], @@ -241,10 +243,10 @@ export default function MapComponent() { creationMode: 'single', }); - if (loaded.current) { - sketch.container = calculationsMenuRef.current; - } - loaded.current = true; + // if (loaded.current) { + // sketch.container = calculationsMenuRef.current; + // } + // loaded.current = true; sketch.on('create', (event) => { if (event.tool === 'point' && event.state === 'complete') { diff --git a/app/mobile-navigation.tsx b/app/mobile-navigation.tsx index 86c360d..9c3e868 100644 --- a/app/mobile-navigation.tsx +++ b/app/mobile-navigation.tsx @@ -18,7 +18,7 @@ export default function Navigation() { }; return ( -
+