fix(webapp): use monospace font for debugging output textboxes#1368
fix(webapp): use monospace font for debugging output textboxes#1368natoscott wants to merge 1 commit into
Conversation
Signed-off-by: Nathan Scott <nathans@redhat.com> Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
WalkthroughChangesDebug output styling
Estimated code review effort: 1 (Trivial) | ~5 minutes Poem
🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
Comment |
Arsene12358
left a comment
There was a problem hiding this comment.
Verified coverage is complete: grep -rn 'label="Debugging"' src/aiconfigurator/webapp/ on main returns exactly 5 textboxes and this PR tags all 5 with elem_classes=["debug-output"]. The .debug-output textarea selector is scoped and can't leak to other components, and the !important is justified to override Gradio's theme-scoped textarea font. LGTM.
Heads-up for rebase order: #1373 relocates the Blocks(css=...) block this rule lands in, and #1369 independently adds this identical CSS rule + convention for its new tab — whichever of the three merges later needs a small rebase rather than a double-add of the rule.
Overview:
The webapp debugging textboxes display CLI output (PrettyTable tables, Pareto frontier charts) that assumes a fixed-width font. Without monospace styling, columns are misaligned and ASCII charts are unreadable.
Details:
.debug-output textarea { font-family: monospace !important; }CSS rule tosrc/aiconfigurator/webapp/main.pyelem_classes=["debug-output"]to all 5 existing debugging textboxes across the webapp tabs (static, agg, agg_pareto, disagg_pareto, disagg_pd_ratio)Where should the reviewer start?
src/aiconfigurator/webapp/main.py— the CSS rule (4 lines)Related Issues: