From 498af855dbc916ab7684db65b900efef6297b0de Mon Sep 17 00:00:00 2001 From: Guilhem Date: Wed, 4 Mar 2026 17:21:42 +0000 Subject: [PATCH] style: move group summary below tab and increase top padding Co-Authored-By: Claude Opus 4.5 --- frontend/src/lib/components/graph/GroupOverlay.svelte | 11 ++++++----- .../src/lib/components/graph/groupEditor.svelte.ts | 2 +- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/frontend/src/lib/components/graph/GroupOverlay.svelte b/frontend/src/lib/components/graph/GroupOverlay.svelte index 85d315559d..fedaac3848 100644 --- a/frontend/src/lib/components/graph/GroupOverlay.svelte +++ b/frontend/src/lib/components/graph/GroupOverlay.svelte @@ -86,11 +86,12 @@ if (group.module_ids.length === 0) return null const { minX, minY, maxX, maxY } = calculateNodesBoundsWithOffset(group.module_ids, allNodes) const padding = 16 + const topPadding = 28 return { x: minX - padding, - y: minY - padding, + y: minY - topPadding, width: maxX - minX + 2 * padding, - height: maxY - minY + 2 * padding + height: maxY - minY + topPadding + padding } } @@ -216,7 +217,7 @@ bind:this={summaryInputEl} bind:value={summaryInput} class="absolute !text-3xs !font-medium !h-4 !bg-transparent !outline-none {textColorClass}" - style="top: -18px; left: 70px; width: 160px; padding: 0 6px;" + style="top: 2px; left:-3px; width: 160px; padding: 2px 2px;" onblur={() => saveSummary(group.id)} onkeydown={(e) => handleSummaryKeydown(e, group.id)} onclick={stopPropagation(preventDefault(() => {}))} @@ -229,10 +230,10 @@ startEditingSummary(group.id, group.summary ?? '')) diff --git a/frontend/src/lib/components/graph/groupEditor.svelte.ts b/frontend/src/lib/components/graph/groupEditor.svelte.ts index a3e4d8f852..7bbc65fc4c 100644 --- a/frontend/src/lib/components/graph/groupEditor.svelte.ts +++ b/frontend/src/lib/components/graph/groupEditor.svelte.ts @@ -261,7 +261,7 @@ export function getGroupEditorContext(): GroupEditorContext | undefined { /** Extra vertical space pushed above the topmost node of each group for the tab */ export const GROUP_HEADER_HEIGHT = 0 -const GROUP_TOP_MARGIN = 16 +const GROUP_TOP_MARGIN = 28 /** * Compute adjusted node positions for collapsed groups whose note is visible.