fix: Performance + Hazard-Tabelle Layout

- Uebersicht: Nur noch 2 leichte API-Calls statt 4 (risk-summary statt alle Hazards/Mitigations laden)
- RiskAssessmentTable: Gefaehrdungs-Spalte min-w-[250px] statt max-w-[200px], kein truncate mehr

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Benjamin Admin
2026-05-07 17:26:28 +02:00
parent e50f3dfbee
commit 5be1c171cb
2 changed files with 10 additions and 20 deletions
@@ -198,9 +198,9 @@ export function RiskAssessmentTable({ projectId, hazards, onReassess, decisions,
return (
<tr key={h.id} className="hover:bg-gray-50 dark:hover:bg-gray-750 transition-colors">
{/* Hazard info */}
<td className="px-3 py-2 max-w-[200px]">
<div className="font-medium text-gray-900 dark:text-white truncate">{h.name}</div>
{h.component_name && <div className="text-[10px] text-gray-400 truncate">{h.component_name}</div>}
<td className="px-3 py-2 min-w-[250px]">
<div className="font-medium text-gray-900 dark:text-white">{h.name}</div>
{h.component_name && <div className="text-[10px] text-gray-400">{h.component_name}</div>}
</td>
<td className="px-3 py-2 border-r border-gray-200 dark:border-gray-600">
<span className="inline-block px-1.5 py-0.5 rounded bg-gray-100 dark:bg-gray-700 text-gray-700 dark:text-gray-300 text-[10px] font-medium">