From d22f150cbeaf6200bdeb49d0b921b3c87668b6ae Mon Sep 17 00:00:00 2001 From: Grovy311 Date: Fri, 7 Aug 2026 17:50:26 +0200 Subject: [PATCH] cable-sizing: trigger on both cable columns, calculator icon Trigger now matches cableSummary OR cableCrossSection so it still shows up regardless of which cable-related column a user has visible (column visibility is a per-browser preference in this app, not fixed - see docs/cable-sizing-module.md coupling note). Icon changed to a calculator glyph. --- src/app/globals.css | 2 +- src/frontend/components/circuit-tree-editor.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/globals.css b/src/app/globals.css index 5aa8f85..bb8df89 100644 --- a/src/app/globals.css +++ b/src/app/globals.css @@ -1228,7 +1228,7 @@ a.kpi:hover { } .tree-grid .cell-cable-sizing-trigger::after { - content: " ⚡"; + content: " 🧮"; font-size: 0.8em; opacity: 0.7; } diff --git a/src/frontend/components/circuit-tree-editor.tsx b/src/frontend/components/circuit-tree-editor.tsx index 3e934c7..e16a4bb 100644 --- a/src/frontend/components/circuit-tree-editor.tsx +++ b/src/frontend/components/circuit-tree-editor.tsx @@ -4277,7 +4277,7 @@ export function CircuitTreeEditor(props: { projectId: string; circuitListId: str row.rowType !== "deviceRow" ); const isCableSizingTrigger = Boolean( - column.key === "cableSummary" && + (column.key === "cableSummary" || column.key === "cableCrossSection") && row.circuit && row.rowType !== "deviceRow" );