From 756fdf50bccfccaf564769a3c2946f95966dc67c Mon Sep 17 00:00:00 2001 From: Guilhem Lemouel Date: Wed, 11 Mar 2026 15:31:00 +0100 Subject: [PATCH] fix: make group summary input width fit text content Use field-sizing: content on the input so it adapts to the text width instead of stretching full width. Co-Authored-By: Claude Opus 4.6 --- frontend/src/lib/components/graph/GroupHeader.svelte | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/frontend/src/lib/components/graph/GroupHeader.svelte b/frontend/src/lib/components/graph/GroupHeader.svelte index a5eaf22944..0ee3e86ea4 100644 --- a/frontend/src/lib/components/graph/GroupHeader.svelte +++ b/frontend/src/lib/components/graph/GroupHeader.svelte @@ -82,12 +82,13 @@ bind:this={textInputComponent} bind:value={summaryInput} size="xs" - class="!bg-transparent !border-transparent !shadow-none !text-2xs !font-medium !p-0 !m-0 !min-w-0 w-full text-center !min-h-0 !h-auto nodrag nowheel pointer-events-auto" + class="!bg-transparent !border-transparent !shadow-none !text-2xs !font-medium !p-0 !m-0 !min-w-0 !w-fit text-center !min-h-0 !h-auto nodrag nowheel pointer-events-auto" inputProps={{ placeholder: 'Group', onblur: saveSummary, onkeydown: handleSummaryKeydown, - spellcheck: false + spellcheck: false, + style: 'padding: 2px !important; field-sizing: content; min-width: 5ch !important' }} /> {:else}