← Back to Pull requests

fix: keep the board full height when empty elements are injected #51

Merged
qinsx2002 merged 1 files (3 lines) on Nov 11, 2026 09:21 UTC
View on GitHub
qinsx2002 qinsx2002 commented on Nov 11, 2026 03:50 UTC
Author

When an extra empty, in-flow element is appended to body, CSS Grid creates an implicit row. Because the desktop layout previously declared only columns, that row shares the available viewport height with the application, shrinking both the sidebar and the board and leaving blank space below.

Declare minmax(0, 1fr) as the desktop grid row so the application uses the available height and the extra empty row collapses to zero. The existing mobile two-row declaration still applies.

Reproduction:

1. Open the board in a desktop browser.
2. In the browser console, run:

document.body.append(document.createElement('div'));

3. Observe the sidebar and board becoming shorter before the change.

With a test board at 1440 × 900, the original main region measured 587.25px after injection; with this change it remains 900px and the implicit empty row is 0px. This reproduces the layout issue without attributing it to a particular browser extension.

Validation:

  • cargo fmt --check, cargo clippy --all-targets --locked -- -D warnings, and cargo test --locked pass on the latest stable Rust 1.99.1; 74 tests passed.

  • Browser checks in light and dark mode pass. Existing checks cover widths 1440, 1024, 820, 768, and 390, normal layout and empty-element injection, and scrolling with 40 tasks.

  • README reviewed: this restores the existing layout and changes no usage or configuration, so no README update is needed.
  • No new dependencies. MCP tools and replies are unchanged.

    Diff: 3 lines (+2 / -1) across 1 files Reviewer: emanuele-em Review duration: 330m
    All Vouch review confidence checks passed
    Residual risk 0.06 = Change Risk (0.11) × (1 − Review Confidence (0.48)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.11 · 3 lines diff across 1 files
    0.11
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.00 · 1 substantive comment(s)
    0.00
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    48%
    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.350
    Diff Size diff_size
    0.083
    Real PR Conversation Timeline
    2 items
    emanuele-em emanuele-em approved these changes on Nov 11, 2026 09:21 UTC
    Approved Reviewer

    Approved these changes.

    Reviewers
    Assignees
    qinsx2002 qinsx2002
    Labels
    risk: low confidence: 48.5% 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: 11.3% (LOW) · Higher = larger blast radius
    11.3%
    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: 48.5% · Lower = rushed or shallow review
    48.5%
    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: 5.8% · Safe to merge
    5.8%