From 30efb66f766240039c24fc77a2e1cfd1ec5e79cf Mon Sep 17 00:00:00 2001 From: Guilhem Date: Wed, 4 Mar 2026 16:43:34 +0000 Subject: [PATCH] style: use group color for summary label text Co-Authored-By: Claude Opus 4.6 --- .../lib/components/graph/GroupOverlay.svelte | 32 +++++++------------ 1 file changed, 12 insertions(+), 20 deletions(-) diff --git a/frontend/src/lib/components/graph/GroupOverlay.svelte b/frontend/src/lib/components/graph/GroupOverlay.svelte index 1ef8ebbb36..a0ecb3bad6 100644 --- a/frontend/src/lib/components/graph/GroupOverlay.svelte +++ b/frontend/src/lib/components/graph/GroupOverlay.svelte @@ -2,7 +2,7 @@ import { ViewportPortal, type Node } from '@xyflow/svelte' import { calculateNodesBoundsWithOffset } from './util' import { getGroupEditorContext, type FlowGroup } from './groupEditor.svelte' - import { NoteColor } from './noteColors' + import { NoteColor, NOTE_COLORS } from './noteColors' import GroupActionBar from './GroupActionBar.svelte' import StepCountTab from './StepCountTab.svelte' import type { CollapsedSubflowN } from './graphBuilder.svelte' @@ -163,26 +163,15 @@ > - +
{ - actionBarHovered = true - visibleGroup = group - if (hideTimeout) { - clearTimeout(hideTimeout) - hideTimeout = undefined - } - }} - onpointerleave={() => { - actionBarHovered = false - }} > -
+
{#if group.summary} {group.summary} {/if} - {#if editMode && visibleGroup?.id === group.id} +
+ {#if editMode} +
groupEditorContext?.groupEditor.addNote(group.id)} onRemoveNote={() => groupEditorContext?.groupEditor.removeNote(group.id)} @@ -212,8 +204,8 @@ visibleGroup = undefined }} /> - {/if} -
+
+ {/if}
{/if}