Improve Set-Struktur editor: show parent set inline, clamp long descriptions
Playwright Tests / test (push) Canceled after 0s

Removes the per-row indentation (span.ind) in favor of a small "belongs to
set" tag shown above each row's title, so membership is visible without
tracing indentation depth even while sets are expanded. Description text
is now clamped to 2 lines with ellipsis by default and expands to a
scrollable ~12-line view on click.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
Stefan
2026-09-14 16:17:53 +02:00
co-authored by Claude Sonnet 5
parent 4386a6336a
commit 6cc79122b3
11 changed files with 74 additions and 20 deletions
+3 -1
View File
@@ -2656,7 +2656,9 @@ $inv.sets = {
}
typ.append($$.s($inv.sets.typLbl(co)));
$$.tdc('qty', tr).text(co.q || '');
let ttl = $$.tdc('ttl', tr).append($$.sc('ind').css('width', (lvl * 1.4).toString() + 'rem')).append($$.s($inv.sets.title(co)));
let ttl = $$.tdc('ttl', tr);
if (parent !== '') { ttl.append($$.sc('seti', $inv.sets.title(byId[parent]))); }
ttl.append($$.sc('txt', $inv.sets.title(co)).click(function (ev) { ev.stopPropagation(); $(this).tC('exp'); }));
if (isSet) {
let n = itms.filter((x) => $inv.sets.parentOf(x, byId) === id).length;
ttl.append($$.sc('cnt', ' (' + n + ')'));