From 178292435fb967772a3693f3bd956d64df409540 Mon Sep 17 00:00:00 2001 From: Jan-Henrik Bruhn Date: Mon, 20 Oct 2025 15:23:01 +0200 Subject: [PATCH] feat: apply custom background colors to maximized groups MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Maximized groups now display their assigned background color instead of using the hardcoded default gray color. Changes: GroupNode.tsx: - Added background color overlay div in maximized state - Uses data.color property (same as minimized groups) - Positioned absolutely to fill entire group area - Set pointerEvents: 'none' to allow interaction with children index.css: - Changed .react-flow__node-group background to transparent - Changed .react-flow__node-group.selected background to transparent - Inner div now controls the background color This ensures visual consistency between minimized and maximized groups - both now respect the user-selected color from the group properties panel. Benefits: - ✅ Visual consistency between group states - ✅ User-selected colors are always visible - ✅ Better visual organization with color-coded groups - ✅ Matches user expectations for group appearance 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- src/components/Nodes/GroupNode.tsx | 14 ++++++++++++++ src/styles/index.css | 4 ++-- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/src/components/Nodes/GroupNode.tsx b/src/components/Nodes/GroupNode.tsx index f9917b4..9500f9d 100644 --- a/src/components/Nodes/GroupNode.tsx +++ b/src/components/Nodes/GroupNode.tsx @@ -220,6 +220,20 @@ const GroupNode = ({ id, data, selected }: NodeProps) => { position: 'relative', }} > + {/* Background color overlay - uses group's custom color */} +
+ {/* Resize handles - only visible when selected */}