diff --git a/components/main/kabelueberwachung/kue705FO/Charts/ChartSwitcher.tsx b/components/main/kabelueberwachung/kue705FO/Charts/ChartSwitcher.tsx index 7bbd988..35f0687 100644 --- a/components/main/kabelueberwachung/kue705FO/Charts/ChartSwitcher.tsx +++ b/components/main/kabelueberwachung/kue705FO/Charts/ChartSwitcher.tsx @@ -23,8 +23,8 @@ const ChartSwitcher: React.FC = ({ isOpen, onClose }) => { // **Modal schließen + Redux-Status zurücksetzen** const handleClose = () => { - dispatch(setChartOpen(false)); // Schalter zurücksetzen - onClose(); // Originale Schließen-Funktion aufrufen + dispatch(setChartOpen(false)); + onClose(); }; // **Vollbildmodus umschalten** @@ -35,7 +35,7 @@ const ChartSwitcher: React.FC = ({ isOpen, onClose }) => { return ( = ({ isOpen, onClose }) => { bottom: "auto", marginRight: "-50%", transform: "translate(-50%, -50%)", - width: isFullScreen ? "100vw" : "70rem", - height: isFullScreen ? "100vh" : "35rem", + width: isFullScreen ? "90vw" : "70rem", + height: isFullScreen ? "90vh" : "35rem", padding: "1rem", transition: "all 0.3s ease-in-out", + display: "flex", + flexDirection: "column", }, }} > - {/* Schließen-Button */} - - - {/* Fullscreen-Button */} - + {/* Fullscreen-Button */} + - {/* Nur die richtige ActionBar und das richtige Chart basierend auf dem Modus anzeigen */} - {activeMode === "Schleife" ? ( - <> -

Schleifenmessung

- - - - ) : ( - <> -

TDR-Messung

- - - - )} + {/* Schließen-Button */} + + + + {/* Chart-Container */} +
+ {activeMode === "Schleife" ? ( + <> +

Schleifenmessung

+ +
+ +
+ + ) : ( + <> +

TDR-Messung

+ +
+ +
+ + )} +
); }; diff --git a/components/main/kabelueberwachung/kue705FO/Charts/LoopMeasurementChart/LoopMeasurementChart.tsx b/components/main/kabelueberwachung/kue705FO/Charts/LoopMeasurementChart/LoopMeasurementChart.tsx index 69353a5..1040af5 100644 --- a/components/main/kabelueberwachung/kue705FO/Charts/LoopMeasurementChart/LoopMeasurementChart.tsx +++ b/components/main/kabelueberwachung/kue705FO/Charts/LoopMeasurementChart/LoopMeasurementChart.tsx @@ -1,11 +1,12 @@ "use client"; // components/main/kabelueberwachung/kue705FO/Charts/LoopMeasurementChart/LoopMeasurementChart.tsx + import React, { useEffect, useRef, useState } from "react"; import { useSelector } from "react-redux"; import { RootState } from "../../../../../../redux/store"; import Chart from "chart.js/auto"; import "chartjs-adapter-moment"; -const LoopMeasurementChart = () => { +const LoopMeasurementChart = ({ isFullScreen }: { isFullScreen: boolean }) => { const chartRef = useRef(null); const chartInstance = useRef(null); const [zoomPlugin, setZoomPlugin] = useState(null); @@ -170,8 +171,14 @@ const LoopMeasurementChart = () => { }, [loopMeasurementCurveChartData, vonDatum, bisDatum, selectedMode]); return ( -
- +
+
); }; diff --git a/components/main/kabelueberwachung/kue705FO/Charts/TDRChart/TDRChart.tsx b/components/main/kabelueberwachung/kue705FO/Charts/TDRChart/TDRChart.tsx index 0af1c2a..8e0bfc4 100644 --- a/components/main/kabelueberwachung/kue705FO/Charts/TDRChart/TDRChart.tsx +++ b/components/main/kabelueberwachung/kue705FO/Charts/TDRChart/TDRChart.tsx @@ -4,7 +4,7 @@ import { useSelector } from "react-redux"; import { Chart, registerables } from "chart.js"; import "chartjs-adapter-date-fns"; -const TDRChart: React.FC = () => { +const TDRChart: React.FC<{ isFullScreen: boolean }> = ({ isFullScreen }) => { const chartRef = useRef(null); const chartInstance = useRef(null); @@ -85,8 +85,8 @@ const TDRChart: React.FC = () => { }, [tdrChartData]); return ( -
- +
+
); }; diff --git a/config/webVersion.ts b/config/webVersion.ts index 8953acc..8a7d8e2 100644 --- a/config/webVersion.ts +++ b/config/webVersion.ts @@ -6,5 +6,5 @@ 2: Patch oder Hotfix (Bugfixes oder kleine Änderungen). */ -const webVersion = "1.6.107"; +const webVersion = "1.6.108"; export default webVersion;