{
- if (hideTimeout) {
- clearTimeout(hideTimeout)
- hideTimeout = undefined
- }
- hoveredLabelGroupId = group.id
- visibleGroup = group
- if (group.id && !(group.id in collapsedState)) {
- collapsedState[group.id] = group.collapsed ?? false
- }
- }}
- onpointerleave={() => {
- hoveredLabelGroupId = null
- if (!popoverOpen && !actionBarHovered && !editingSummary) {
- hideTimeout = setTimeout(() => {
- visibleGroup = undefined
- }, 150)
- }
- }}
>
- {#if editingGroupId === group.id}
-
commitSummary(group.id)}
- onkeydown={(e) => {
- if (e.key === 'Enter') commitSummary(group.id)
- if (e.key === 'Escape') {
- editingGroupId = null
+
+
{
+ if (hideTimeout) {
+ clearTimeout(hideTimeout)
+ hideTimeout = undefined
+ }
+ hoveredLabelGroupId = group.id
+ visibleGroup = group
+ if (group.id && !(group.id in collapsedState)) {
+ collapsedState[group.id] = group.collapsed ?? false
+ }
+ }}
+ onpointerleave={() => {
+ hoveredLabelGroupId = null
+ if (!colorPickerOpen && !actionBarHovered && !editingSummary) {
+ hideTimeout = setTimeout(() => {
+ visibleGroup = undefined
+ }, 150)
+ }
+ }}
+ >
+ {#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 editMode && visibleGroup?.id === group.id}
+
{
+ actionBarHovered = true
+ if (hideTimeout) {
+ clearTimeout(hideTimeout)
+ hideTimeout = undefined
}
}}
- autofocus
- />
- {:else}
-
- {group.summary || 'Group'}
-
- {#if editMode && hoveredLabelGroupId === group.id}
-
- {/if}
+ onpointerleave={() => {
+ actionBarHovered = false
+ }}
+ >
+
+
+
{/if}