Show full anti-pattern names in overlay labels

Removes the 26-character truncation in TYPE_LABELS that cut off long
anti-pattern names mid-word (e.g. "icon tile stacked above heading"
became "icon tile stacked above he"). The label is sized by content
via white-space: nowrap so it grows to fit, and multi-finding overlays
that exceed the outline width already fall back to the cycling UI.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Paul Bakaus
2026-04-06 23:29:44 -07:00
co-authored by Claude Opus 4.6
parent e1032b7285
commit 45e68519a4
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1607,7 +1607,7 @@ if (IS_BROWSER) {
const TYPE_LABELS = {};
const RULE_CATEGORY = {};
for (const ap of ANTIPATTERNS) {
TYPE_LABELS[ap.id] = ap.name.toLowerCase().substring(0, 26);
TYPE_LABELS[ap.id] = ap.name.toLowerCase();
RULE_CATEGORY[ap.id] = ap.category || 'quality';
}
+1 -1
View File
@@ -1602,7 +1602,7 @@ if (IS_BROWSER) {
const TYPE_LABELS = {};
const RULE_CATEGORY = {};
for (const ap of ANTIPATTERNS) {
TYPE_LABELS[ap.id] = ap.name.toLowerCase().substring(0, 26);
TYPE_LABELS[ap.id] = ap.name.toLowerCase();
RULE_CATEGORY[ap.id] = ap.category || 'quality';
}