Repository navigation
Fix weather panel hero overlapping location at triple-digit temps - #7560
guilhermetk wants to merge 1 commit into
Conversation
The hero row anchors the icon+temperature cluster to the left edge and the location/stats column to the right edge of a fixed-width card with no collision guard, so a three-digit (or negative) reading widens the left cluster past the right column and the unit ends up drawn over the location label (omacom#6991). Step the hero icon (64 -> 56) and temperature (56 -> 44) down a size whenever the rounded reading is 3+ characters, which keeps the two sides separated for any temperature the providers can return.
There was a problem hiding this comment.
Pull request overview
Prevents weather-panel overlap for wide temperatures by reducing hero sizing when readings contain three or more characters.
Changes:
- Detects wide temperature readings.
- Reduces hero icon and temperature sizes accordingly.
- Adds regression assertions.
Tip
If you aren't ready for review, convert to a draft PR.
Click "Convert to draft" or run gh pr ready --undo.
Click "Ready for review" or run gh pr ready to reengage.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
shell/plugins/panels/weather/Panel.qml |
Adds responsive hero sizing for wide temperatures. |
test/shell.d/weather-test.sh |
Verifies the threshold and adjusted sizes. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
|
Thanks for picking this up from #6991. Reviewed against What was checked. The hero row in
This change switches to smaller sizes when Competing fixes. Three other open pull requests change this row:
Of these, #11238 fixes the cause. This one fixes one of its symptoms. Second opinion. Codex Medium was asked to compare all four without being told this conclusion, and chose #11238 for the same reason. It could read this session's working files, so its independence isn't guaranteed. On its own, it measured a stress case with the actual font: at default width, the stepped-down sizes clear by about 42px, so it found no default-size failure for this change. It also noted that #10540 complements #11238, because a long location name overflows to the right, which the scaling doesn't measure. What happens next. This waits on the maintainer to choose between the fixes for #6991. Nothing was pushed to your branch. |
|
Thank you for this, @guilhermetk. #11238 fixes the same problem in a way the review judged better, so this is closed in favour of it. If it does not cover your case, please say so there. Closed at the maintainer's request. The review comment above has the details; it was done by Claude Opus 5.5 with Codex Medium as a second opinion, whose agreement is not independent. |


The hero row anchors the icon+temperature cluster to the left edge and the location/stats column to the right edge of a fixed-width card with no collision guard, so a three-digit (or negative) reading widens the left cluster past the right column and the unit ends up drawn over the location label (#6991).
Step the hero icon (64 -> 56) and temperature (56 -> 44) down a size whenever the rounded reading is 3+ characters, which keeps the two sides separated for any temperature the providers can return.
Before:

After:
