diff --git a/.env.development b/.env.development index 2a8341f..ff2da91 100644 --- a/.env.development +++ b/.env.development @@ -6,6 +6,6 @@ NEXT_PUBLIC_USE_MOCK_BACKEND_LOOP_START=false NEXT_PUBLIC_EXPORT_STATIC=false NEXT_PUBLIC_USE_CGI=false # App-Versionsnummer -NEXT_PUBLIC_APP_VERSION=1.6.716 +NEXT_PUBLIC_APP_VERSION=1.6.717 NEXT_PUBLIC_CPL_MODE=json # json (Entwicklungsumgebung) oder jsSimulatedProd (CPL ->CGI-Interface-Simulator) oder production (CPL-> CGI-Interface Platzhalter) diff --git a/.env.production b/.env.production index 15cedf9..7f5ea84 100644 --- a/.env.production +++ b/.env.production @@ -5,5 +5,5 @@ NEXT_PUBLIC_CPL_API_PATH=/CPL NEXT_PUBLIC_EXPORT_STATIC=true NEXT_PUBLIC_USE_CGI=true # App-Versionsnummer -NEXT_PUBLIC_APP_VERSION=1.6.716 +NEXT_PUBLIC_APP_VERSION=1.6.717 NEXT_PUBLIC_CPL_MODE=production \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index f9e4a0b..7fdb68a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +## [1.6.717] – 2025-08-14 + +- feat: close button and maximize modal + +--- ## [1.6.716] – 2025-08-14 - Messkurve Modal in Messwerteingänge diff --git a/components/main/analogInputs/AnalogInputsChart.tsx b/components/main/analogInputs/AnalogInputsChart.tsx index 9b03ee0..abdc13a 100644 --- a/components/main/analogInputs/AnalogInputsChart.tsx +++ b/components/main/analogInputs/AnalogInputsChart.tsx @@ -3,6 +3,7 @@ import React, { useEffect, useRef } from "react"; import { useDispatch, useSelector } from "react-redux"; import { RootState, AppDispatch } from "@/redux/store"; +import { Dialog } from "@headlessui/react"; import { Line } from "react-chartjs-2"; import { Chart as ChartJS, @@ -106,7 +107,7 @@ export default function AnalogInputsChart({ setLocalZeitraum(zeitraum); }, [vonDatumRedux, bisDatumRedux, zeitraum]); - // Initiale Default-Werte: 30 Tage zurück + // Initiale Default-Werte: 30 Tage zurück (nur wenn Redux-Werte fehlen) useEffect(() => { if (!vonDatumRedux || !bisDatumRedux) { const today = new Date(); @@ -117,7 +118,7 @@ export default function AnalogInputsChart({ setLocalVonDatum(fromDate); setLocalBisDatum(toDate); } - }, []); + }, [vonDatumRedux, bisDatumRedux]); // ✅ Nur lokale Änderung beim Picker const handleDateChange = (from: string, to: string) => { @@ -276,6 +277,7 @@ export default function AnalogInputsChart({ const memoizedChartOptions = React.useMemo(() => { return { responsive: true, + maintainAspectRatio: false, plugins: { legend: { position: "top" as const }, tooltip: { @@ -360,57 +362,68 @@ export default function AnalogInputsChart({ }, []); return ( -