From ad931d0c41d52fdb716bcebacf3d973a36b365cb Mon Sep 17 00:00:00 2001 From: Zainab2604 Date: Sun, 15 Jun 2025 13:37:22 +0200 Subject: [PATCH] Add Tooltip for missing values --- .../src/components/KennzahlenTable.tsx | 114 ++++++++++-------- 1 file changed, 61 insertions(+), 53 deletions(-) diff --git a/project/frontend/src/components/KennzahlenTable.tsx b/project/frontend/src/components/KennzahlenTable.tsx index 5808a5f..5a94dff 100644 --- a/project/frontend/src/components/KennzahlenTable.tsx +++ b/project/frontend/src/components/KennzahlenTable.tsx @@ -225,61 +225,69 @@ export default function KennzahlenTable({ ) : ( - - - {hasNoValue && ( - - )} - {editingIndex === row.setting.name ? ( - setEditValue(e.target.value)} - onKeyDown={(e) => - handleKeyPress(e, row.setting.name) - } - onBlur={() => handleSave(row.setting.name)} - autoFocus - size="small" - fullWidth - variant="standard" - sx={{ margin: "-8px 0" }} + + + + {hasNoValue && ( + + )} + {editingIndex === row.setting.name ? ( + setEditValue(e.target.value)} + onKeyDown={(e) => + handleKeyPress(e, row.setting.name) + } + onBlur={() => handleSave(row.setting.name)} + autoFocus + size="small" + fullWidth + variant="standard" + sx={{ margin: "-8px 0" }} + /> + ) : ( + + {row.extractedValues.at(0)?.entity || "—"} + + )} + + { + e.stopPropagation(); + startEditing( + row.extractedValues.at(0)?.entity || "", + row.setting.name, + ); + }} /> - ) : ( - - {row.extractedValues.at(0)?.entity || "—"} - - )} - - { - e.stopPropagation(); - startEditing( - row.extractedValues.at(0)?.entity || "", - row.setting.name, - ); - }} - /> - + + + )}