fix(web/nav-rail): start-align the label on a row without href #313
All Vouch review confidence checks passed
Residual risk 0.08 = Change Risk (0.15) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.15 · 5 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.107
Real PR Conversation Timeline
1 comments
"Review active on #313"
general
weight: 0.35
Khalidabdi1
danestves
What this changes
A
NavRail.Itemwithouthrefnow starts its label at the icon, like every link row. Before, the label sat centred in the row.Why
Without
hrefthe row renders a<button>, and browsers centre a button's text. Outlayr's web app hit this on a Search row that is a button, not a destination. The fix addstext-startto the item slot.Type of change
How it was tested
Web only. I applied the same change as a patch over
panelui-web@0.17.0in Outlayr's dashboard and measured it in Chrome at 1440 and 390 wide. The button row's label now starts at the same x as the link rows (56px in the rail, 52px in the drawer).packages/webtypecheck and build pass, and so donpm testandnpm run lint.Screenshots
Taken in Outlayr's dashboard with #313, #314 and #315 applied as a patch over
panelui-web@0.17.0.| Light | Dark |
| --- | --- |
| <img src="https://raw.githubusercontent.com/danestves/PanelUI/pr-assets/nav-rail/fixes/desktop-light.png" width="640" alt="Unfolded rail at 1440px in light mode, the Search row label starting at the same edge as Dashboard"> | <img src="https://raw.githubusercontent.com/danestves/PanelUI/pr-assets/nav-rail/fixes/desktop-dark.png" width="640" alt="Unfolded rail at 1440px in dark mode, the Search row label aligned with the rows below"> |
Checklist
npm run typecheckpasses (packages/web)npm run buildpasses (packages/web)npm run docs:generate --workspace=docshas been run (the registry item changed)Reviewed with sol-loop: 1 round with gpt-6.1-sol. Sol verdict: approved
Created with Claude Opus 5.5 in T3 Code (Claude Code harness).
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
<!-- coderabbit-ai-generated:v1 -->
Summary by CodeRabbit
Bug Fixes
Navigation rail item labels are now aligned to the start, including items rendered as buttons, for consistent text alignment.
* Navigation rail badges now clip content that overflows their boundaries, keeping excess content from extending beyond the badge.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->