What changed, and why it matters
This commit removes manual shortening of preset names in a developer-only playground GUI and lets the UI toolkit handle truncation automatically. It is a cosmetic/usability fix with no apparent security relevance.
No security action required; treat as a routine UI cleanup.
Security signals we found
No strong security signals were identified.
Evidence from the diff
In dev-tools/playground/gui.py, the _preset_choices() function previously truncated preset descriptions longer than 70 characters. The patch removes that logic and instead adds CSS styling (text-wrap: nowrap; text-overflow: ellipsis) so long labels are truncated by the rendering layer. The file is part of a developer playground tool, not the device app or production wallet code.
Changed components
dev-tools/playground/gui.pyInspect captured patch +9 / −4
diff --git a/dev-tools/playground/gui.py b/dev-tools/playground/gui.py
index 6b1349d..30aa1e9 100644
--- a/dev-tools/playground/gui.py
+++ b/dev-tools/playground/gui.py
@@ -88,10 +88,7 @@ def _preset_choices(presets) -> list[tuple[str, str]]:
"""
out: list[tuple[str, str]] = [("(no preset)", NO_PRESET)]
for p in presets:
- desc = p.description
- if len(desc) > 70:
- desc = desc[:67] + "..."
- out.append((f"{p.name} — {desc}", p.name))
+ out.append((f"{p.name} — {p.description}", p.name))
return out
@@ -247,6 +244,14 @@ class PlaygroundApp(App):
.form-row Input {
width: 1fr;
}
+ /* Preset dropdowns. Without this, a long `name — description` label wraps
+ onto several lines, which pushes most of the preset names out of the
+ overlay; one line per preset keeps every name in view. */
+ Select > SelectOverlay {
+ max-height: 20;
+ text-wrap: nowrap;
+ text-overflow: ellipsis;
+ }
.keys-area {
height: 6;
}
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.