loopDisplayText in loopTitleText umbenennen und Text zu 7Pixel vergrößern
This commit is contained in:
@@ -18,7 +18,7 @@ function Kue705FO({
|
||||
const [currentAlarmStatus, setCurrentAlarmStatus] = useState(false);
|
||||
const [currentModulName, setCurrentModulName] = useState(modulName);
|
||||
const [activeButton, setActiveButton] = useState("Schleife");
|
||||
const [loopDisplayText, setloopDisplayText] = useState(
|
||||
const [loopTitleText, setloopTitleText] = useState(
|
||||
"Schleifenwiderstand [kOhm]"
|
||||
);
|
||||
const [isoDisplayText, setIsoDisplayText] = useState("Aderbruch");
|
||||
@@ -279,11 +279,11 @@ function Kue705FO({
|
||||
const handleButtonClick = (button) => {
|
||||
if (button === "Schleife") {
|
||||
setActiveButton("Schleife");
|
||||
setloopDisplayText("Schleifenwiderstand [kOhm]");
|
||||
setloopTitleText("Schleifenwiderstand [kOhm]");
|
||||
setCurrentDisplayValue(schleifenwiderstand || "0");
|
||||
} else if (button === "TDR") {
|
||||
setActiveButton("TDR");
|
||||
setloopDisplayText("Entfernung [Km]");
|
||||
setloopTitleText("Entfernung [Km]");
|
||||
setCurrentDisplayValue(tdrLocation || "0");
|
||||
}
|
||||
};
|
||||
@@ -539,8 +539,8 @@ function Kue705FO({
|
||||
</div>
|
||||
{/* loopDisplay: Zeigt Schleifenwiderstand oder TDR-Distanz an, je nach Modus */}
|
||||
<div className="absolute bottom-1 left-[1.095px] w-[113.182px] h-[130px] bg-gray-300 border-[1.5px] border-gray-400 p-1">
|
||||
<span className="text-black text-[6px] absolute top-[2px] left-1 mt-1">
|
||||
{loopDisplayText}
|
||||
<span className="text-black text-[7px] absolute top-[2px] left-1 mt-1">
|
||||
{loopTitleText}
|
||||
</span>
|
||||
|
||||
<div className="relative w-full h-[45px] bg-gray-100 border border-gray-400 flex items-center justify-center mt-3">
|
||||
|
||||
@@ -161,7 +161,7 @@ var tdrLocation = [
|
||||
0, 0, 0, 0, 0, 0,
|
||||
];
|
||||
var tdrActive = [
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0,
|
||||
];
|
||||
var tdrLast = [
|
||||
|
||||
Reference in New Issue
Block a user