From b8fc47e8818a2ac64ce6b91fa50d5c0786cce8d7 Mon Sep 17 00:00:00 2001 From: nessi Date: Tue, 3 Feb 2026 15:22:18 +0100 Subject: [PATCH] Update text style for additional conditions Adjusted text decoration and opacity to apply when certain tags ("i" or "s") are set. This ensures better visual feedback for the specified conditions in the application interface. --- frontend/src/App.jsx | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/frontend/src/App.jsx b/frontend/src/App.jsx index 86f06f7..7239496 100644 --- a/frontend/src/App.jsx +++ b/frontend/src/App.jsx @@ -722,11 +722,24 @@ export default function App() { onClick={() => cycleStatus(e)} style={{ ...styles.name, - textDecoration: e.status === 1 ? "line-through" : "none", + + // ✅ Karte durchstreichen wenn Rot ODER Tag i/s gesetzt ist + textDecoration: + e.status === 1 || + e.note_tag === "i" || + e.note_tag === "s" + ? "line-through" + : "none", + + opacity: + e.status === 1 || + e.note_tag === "i" || + e.note_tag === "s" + ? 0.65 + : 1, + color: getNameColor(e.status), - opacity: e.status === 1 ? 0.8 : 1, }} - title="Klick: Grün → Rot → Grau → Leer" > {e.label}