mirror of
https://github.com/pbakaus/impeccable.git
synced 2026-09-14 15:16:35 +03:00
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:
co-authored by
Claude Opus 4.6
parent
e1032b7285
commit
45e68519a4
@@ -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';
|
||||
}
|
||||
|
||||
|
||||
@@ -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';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user