From c05e22dc6d2bef3163ac07f6222501bb206ce964 Mon Sep 17 00:00:00 2001 From: chihlasm Date: Thu, 19 Feb 2026 00:23:47 -0500 Subject: [PATCH] style: fix canvas controls visibility and enhance dot grid background - Add !important to all React Flow dark theme overrides to ensure they win over library default styles (fixes white controls rectangle) - Add SVG fill inheritance for control button icons - Use slightly lighter canvas background (bg-accent/30) so dot grid is more visible - Increase dot size and use muted-foreground color for better contrast Co-Authored-By: Claude Opus 4.6 --- .../src/components/tree-editor/FlowCanvas.tsx | 4 +-- frontend/src/index.css | 31 ++++++++++++------- 2 files changed, 21 insertions(+), 14 deletions(-) diff --git a/frontend/src/components/tree-editor/FlowCanvas.tsx b/frontend/src/components/tree-editor/FlowCanvas.tsx index 30e89afc..c8a9ef0f 100644 --- a/frontend/src/components/tree-editor/FlowCanvas.tsx +++ b/frontend/src/components/tree-editor/FlowCanvas.tsx @@ -136,9 +136,9 @@ function FlowCanvasInner({ selectedNodeId, onNodeSelect, onSelectAnswerType }: F nodesDraggable={false} nodesConnectable={false} proOptions={{ hideAttribution: true }} - className="bg-background" + className="bg-accent/30" > - + {minimapVisible && (