← Back to Pull requests

fix(web/nav-rail): start-align the label on a row without href #313

Merged
danestves merged 2 files (5 lines) on Nov 16, 2026 15:41 UTC
View on GitHub
danestves danestves commented on Nov 14, 2026 20:34 UTC
Author

What this changes

A NavRail.Item without href now starts its label at the icon, like every link row. Before, the label sat centred in the row.

Why

Without href the 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 adds text-start to the item slot.

Type of change

  • Bug fix
  • How it was tested

    Web only. I applied the same change as a patch over panelui-web@0.17.0 in 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/web typecheck and build pass, and so do npm test and npm run lint.

  • Light and dark themes
  • 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 typecheck passes (packages/web)

  • npm run build passes (packages/web)

  • Commits follow Conventional Commits

  • npm run docs:generate --workspace=docs has 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 -->

    Diff: 5 lines (+3 / -2) across 2 files Reviewer: Khalidabdi1 Review duration: 2587m
    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
    0.15
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    46%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    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
    Reviewers
    Assignees
    danestves danestves
    Labels
    risk: low confidence: 46.7% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 15.2% (LOW) · Higher = larger blast radius
    15.2%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 46.7% · Lower = rushed or shallow review
    46.7%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 8.1% · Safe to merge
    8.1%