← Back to Pull requests

frontend: fix overflow and margins on small screens #1650

Closed
unknown closed this pull request without merging on Nov 04, 2026 20:49 UTC
View on GitHub
unknown unknown commented on Nov 04, 2026 20:28 UTC
Author

This PR fixes two problems on small screens.

Long attribute names

A long attribute name, such as linuxKernel.packages.linux_xanmod_latest.cpupower, did not wrap. It made the results column wider than the page on small screens.

Option names wrapped already. The overflow-wrap: anywhere rule is now on .search-result-title, which packages and options both use. Long option names continue to wrap. Unlike word-break: break-all, overflow-wrap: anywhere breaks a word only if the word cannot fit on a line by itself.

before

<img width="800" alt="before: the package name goes past the right edge of the page at 800px width" src="https://raw.githubusercontent.com/KiaraGrouwstra/nixos-search/98139cf9af00849c72ee4f0690a1ca170524f0e9/before-800.png" />

after

<img width="800" alt="after: the package name wraps in the results column at 800px width" src="https://raw.githubusercontent.com/KiaraGrouwstra/nixos-search/98139cf9af00849c72ee4f0690a1ca170524f0e9/after-800.png" />

Container width

The .container width changed in steps: 724px, 940px and 1170px. Just below each step, the margins took a large part of the screen, for example more than 20% at 920px. Now the container fills the screen minus a 20px gutter on each side, to a maximum of 1170px. The header uses the same maximum width. Below 768px, the layout does not change.

before

<img width="920" alt="before: wide empty margins on the left and right of the page at 920px width" src="https://raw.githubusercontent.com/KiaraGrouwstra/nixos-search/c8a9135ad41662b7e78d345a05a232ea54584953/before-920.png" />

after

<img width="920" alt="after: the page content fills the width with a 20px gutter at 920px width" src="https://raw.githubusercontent.com/KiaraGrouwstra/nixos-search/c8a9135ad41662b7e78d345a05a232ea54584953/fluid-920.png" />

Fixes #1649

Assisted-by: Claude:claude-opus-5-5

https://claude.ai/code/session_01RbKyH6Xbm1cpsvGs6fS745

Diff: 245 lines (+183 / -62) across 3 files Reviewer: Sigmanificient Review duration: 21m
All Vouch review confidence checks passed
Residual risk 0.15 = Change Risk (0.39) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.39 · 245 lines diff across 3 files
0.39
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
0.17
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
60%
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
Diff Size diff_size
0.329
Shallow Review Depth shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #1650"
general weight: 0.35
Assignees
Unassigned
Labels
risk: low confidence: 60.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: 38.9% (MEDIUM) · Higher = larger blast radius
38.9%
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: 60.5% · Lower = rushed or shallow review
60.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: 15.3% · Safe to merge
15.3%