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.
This commit is contained in:
2026-02-03 15:22:18 +01:00
parent 2ec7c63119
commit b8fc47e881

View File

@@ -722,11 +722,24 @@ export default function App() {
onClick={() => cycleStatus(e)} onClick={() => cycleStatus(e)}
style={{ style={{
...styles.name, ...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), color: getNameColor(e.status),
opacity: e.status === 1 ? 0.8 : 1,
}} }}
title="Klick: Grün → Rot → Grau → Leer"
> >
{e.label} {e.label}
</div> </div>