Repository navigation
Fit the weather panel to narrow popups - #11238
SimonSchubert wants to merge 4 commits into
Conversation
2c01209 to
454e81e
Compare
On a screen narrower than the panel's 480px the popup is fitted to what the screen has, but the two rows inside it are still laid out for 480, so they overlap and clip. The hero row anchors icon-and-temperature to the left edge and location-and- stats to the right. At 360 logical the popup's content is 318 wide and the halves need 403, so they print 85px on top of each other. The forecast row is three days centred 44px apart inside a Flickable that scrolls vertically only, so at 329 in 318 it is clipped with no way to reach the overflow. Both rows now scale down to fit, the way SpeedTestOverlay scales its dial. The hero is laid out at the width its halves need and scaled from its left edge; the forecast row is scaled about its centre. Both scales are exactly 1 wherever the content fits, so on a desktop the popup renders as before. Verified in a 720x1440 VM at scale 2 (360 logical) and at 1920x1080, from a fresh start at each and across a live switch between them in both directions, with no binding-loop warnings. At 1920x1080 the popup matches the unpatched render to within llvmpipe's anti-aliasing.
454e81e to
5dcc5e8
Compare
|
Reviewed and reproduced on an Omarchy worker VM, with this branch merged into current The bug is real, and this fixes it. At 360 logical px (1440x900 portrait at scale 2.5) It also fixes #6991, so I've linked it. With Nothing changes on a desktop that fits. At 1280x800 and scale 1 the screen matches Tests: Nothing is needed from you. This waits on the second opinion and on the maintainer. |
Keep the original hero typography at the default size and scale it with the shell text setting. Use the painted heights when the hero and forecast shrink, and exercise both rows at a capped width with the real QML bindings. Co-Authored-By: Tech Man Dan <dan.inman@hotmail.co.uk> Co-Authored-By: GPT-6 in Codex <noreply@openai.com>
Wait for layout and confirm that the narrow fixture actually scales populated rows. Measure the transformed bounds so the test also catches unused row height and checks the default typography. Co-Authored-By: Opus 5.5 High <noreply@anthropic.com>
[Medium impact] The PR appears safe to merge; no actionable issues were found. SummaryThe weather panel now shrinks its hero and forecast rows to fit narrow popups.
No actionable issues were found. Runtime tests and visual captures were not run during this review. Reviews (1) · Last reviewed commit: "Check the rendered height of capped Weat..." · Reviewed by Greptile |
|
I folded the Weather sizing and regression coverage from #20665 into The comparison with #17633 and #20226 focused on keeping both rows visible when the screen caps the popup. GPT-6 in Codex (high effort) reviewed and tested the change. Opus 5.5 High found no remaining code defects in the diff and used the worker evidence I supplied for the rendered result. Greptile scored this revision 5/5 with no findings. I classified the revised head as a bug fix for #6991, and DeepSeek V4P1 Flash classified it as an enhancement. The classification is unsettled, and GitHub Actions is waiting for maintainer approval. |


On a screen narrower than the weather panel's 480px, the popup is fitted to the screen, but the two rows inside it are still laid out for 480, so they overlap and clip.
Flickablethat scrolls vertically only (contentWidth: width). The row is 329 wide in 318, so it's clipped at both ends with no way to reach the overflow: Friday's icon loses its left edge, and Sunday's low loses its degree sign.The change
Both rows scale down to fit, the way
SpeedTestOverlayalready scales its dial. The hero is laid out at the width its halves need and scaled from its left edge:The
16 + 20 + 16is the existing left margin, the existing right margin, and a minimum gap between the halves. The forecast row is scaled about its centre:Why it's safe
parent.widthas before, so on a desktop the popup is unchanged.Verification
Per
agents/skills/visual-verification.md, reference and candidate captures in the running shell (omarchy-restart-shell, thenomarchy-shell omarchy.weather open):A companion to #11034, found the same way on a phone-shaped screen. Like that one, it's a narrow-screen robustness fix rather than a mobile-specific one.
Fixes #6991