From 9639b2bfe88c3c4cedc1fca000443352e7e8f580 Mon Sep 17 00:00:00 2001 From: Lucio Lelii Date: Fri, 25 Sep 2026 19:35:14 +0200 Subject: [PATCH] Show a list's full name on hover, and make its count easy to read A list name too long for the node was cut with an ellipsis and nowhere readable in full. It now shows whole in a tooltip when it is cut, the way sidebar titles do. The count is white on a solid badge, and quiet when the list is empty. The name tooltip also takes the app's font: it asked for Roboto, which the app does not load, and fell back to a serif - in the flow list too. Co-Authored-By: Claude Opus 5.5 (1M context) --- .../nodes/node-list-field/node-list-field.css | 22 +++++++++++-------- .../node-list-field/node-list-field.html | 6 ++--- .../nodes/node-list-field/node-list-field.ts | 3 +++ src/styles.css | 3 +++ 4 files changed, 22 insertions(+), 12 deletions(-) diff --git a/src/app/shared/nodes/node-list-field/node-list-field.css b/src/app/shared/nodes/node-list-field/node-list-field.css index d7cc41b..3344adc 100644 --- a/src/app/shared/nodes/node-list-field/node-list-field.css +++ b/src/app/shared/nodes/node-list-field/node-list-field.css @@ -85,18 +85,22 @@ .llm-array-count { flex: 0 0 auto; - min-width: 18px; - padding: 1px 6px; + min-width: 20px; + height: 18px; + padding: 0 6px; border-radius: 999px; - background: #e0e7ff; - color: #3730a3; - font-size: 10px; - font-weight: 600; - line-height: 1.4; + background: #4f46e5; + color: #ffffff; + font-size: 11px; + font-weight: 700; + line-height: 18px; text-align: center; + box-shadow: 0 1px 2px rgba(79, 70, 229, 0.3); } -.llm-array-toggle:disabled .llm-array-count { - background: #f1f5f9; +/* Empty: still there to say "none", but quiet - nothing to open. */ +.llm-array-count.llm-array-count-empty { + background: transparent; color: #94a3b8; + box-shadow: inset 0 0 0 1px #cbd5e1; } diff --git a/src/app/shared/nodes/node-list-field/node-list-field.html b/src/app/shared/nodes/node-list-field/node-list-field.html index 85d8550..c244479 100644 --- a/src/app/shared/nodes/node-list-field/node-list-field.html +++ b/src/app/shared/nodes/node-list-field/node-list-field.html @@ -10,12 +10,12 @@ class="llm-array-toggle" [disabled]="!items.length" [attr.aria-expanded]="expanded()" - [attr.title]="items.length ? (expanded() ? 'Hide ' : 'Show ') + label.toLowerCase() : null" + [attr.aria-label]="label + ', ' + items.length + (items.length === 1 ? ' item' : ' items')" (pointerdown)="$event.stopPropagation()" (click)="toggle($event)"> - {{ label }} - {{ items.length }} + {{ label }} + {{ items.length }} @if (!readonly) {