fix: Gerätestandort im Header jetzt einzeilig – kein Zeilenumbruch mehr

- whitespace-nowrap verhindert Umbruch
- truncate + max-w beschränkt Länge visuell
- bessere Darstellung auch bei hoher Auflösung
This commit is contained in:
Ismail Ali
2025-04-30 22:54:12 +02:00
parent 40777f212b
commit 823d12fcea
6 changed files with 73 additions and 41 deletions

View File

@@ -4,13 +4,15 @@ import path from "path";
import fs from "fs/promises";
export default async function handler(req, res) {
const { slot, value } = req.query;
const { slot, value, key } = req.query;
if (slot === undefined || value === undefined) {
return res.status(400).json({ error: "Missing slot or value" });
}
const key = "win_tdrActive";
if (!slot || !value || !key) {
return res.status(400).json({ error: "Missing slot, value, or key" });
}
const filePath = path.join(
process.cwd(),
"apiMockData/SERVICE/kabelueberwachungMockData.js"