diff --git a/frontend/src/lib/components/graph/GroupOverlay.svelte b/frontend/src/lib/components/graph/GroupOverlay.svelte index 0806e35221..045929c5fc 100644 --- a/frontend/src/lib/components/graph/GroupOverlay.svelte +++ b/frontend/src/lib/components/graph/GroupOverlay.svelte @@ -1,7 +1,7 @@ @@ -160,7 +165,7 @@ {#if labelBounds}
{ + hoveredLabelGroupId = null if (!popoverOpen && !actionBarHovered && !editingSummary) { hideTimeout = setTimeout(() => { visibleGroup = undefined @@ -182,9 +189,33 @@ } }} > - - {group.summary || 'Group'} - + {#if editingGroupId === group.id} + commitSummary(group.id)} + onkeydown={(e) => { + if (e.key === 'Enter') commitSummary(group.id) + if (e.key === 'Escape') { + editingGroupId = null + } + }} + autofocus + /> + {:else} + + {group.summary || 'Group'} + + {#if editMode && hoveredLabelGroupId === group.id} + + {/if} + {/if}
{/if} @@ -222,29 +253,6 @@ actionBarHovered = false }} > - - {#if editingSummary} - commitSummary(group.id)} - onkeydown={(e) => { - if (e.key === 'Enter') commitSummary(group.id) - if (e.key === 'Escape') { - editingSummary = false - } - }} - /> - {:else} - - {/if} -