diff --git a/frontend/src/lib/components/graph/GroupNodeCard.svelte b/frontend/src/lib/components/graph/GroupNodeCard.svelte index d14dec6a79..33803534fe 100644 --- a/frontend/src/lib/components/graph/GroupNodeCard.svelte +++ b/frontend/src/lib/components/graph/GroupNodeCard.svelte @@ -90,8 +90,7 @@ class={twMerge( 'w-full module cursor-pointer max-w-full', fullWidth ? 'rounded-t-md' : 'shadow-sm border rounded-md overflow-clip', - 'bg-surface-tertiary', - noteColorConfig ? noteColorConfig.text : '' + 'bg-surface-tertiary' )} style={fullWidth ? '' : 'width: 275px;'} > @@ -137,7 +136,9 @@ g.id === data.groupId) ) + + let colorConfig = $derived( + data.color + ? (NOTE_COLORS[data.color as NoteColor] ?? NOTE_COLORS[NoteColor.BLUE]) + : NOTE_COLORS[NoteColor.BLUE] + ) + let borderColorClass = $derived(colorConfig.outline.replace(/outline-/g, 'border-')) @@ -30,11 +38,11 @@
(hover = true)} onmouseleave={() => (hover = false)}>