Skip to content

Grow the weather panel so long language labels do not overlap °C - #17633

Open
reverb256 wants to merge 2 commits into
omacom:quattrofrom
reverb256:fix/17630-weather-hero-overlap
Open

reverb256 wants to merge 2 commits into
omacom:quattrofrom
reverb256:fix/17630-weather-hero-overlap

Conversation

@reverb256

Copy link
Copy Markdown

Summary

In languages with long weather-stat labels (for example Russian ОЩУЩАЕТСЯ), the °C next to the big temperature was drawn under the stats column. The hero row anchors the temperature to the left and the stats to the right of a fixed 480px panel, so nothing kept them apart.

Change

English and other short-label languages stay at 480px.

Test plan

Fixes #17630

In languages with long weather stats labels (e.g. Russian ОЩУЩАЕТСЯ),
the hero's left temperature block and right stats column collide
inside the fixed 480px panel. Track the width the hero needs, size
the panel to at least that (still capped by fittedContentWidth for
narrow screens), and elide long location names.

Fixes omacom#17630
@greptile-apps

greptile-apps Bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge, with the previous finding addressed and no new actionable issues found.

Summary

The weather panel grows to fit long translated labels and elides long location names.

  • The weather card grows when translated stats need more room.
  • Long weather location names stop at the stats column.

Reviews (2) · Last reviewed commit: "test(weather): check the hero row by wid..." · Reviewed by Greptile

Comment thread test/shell.d/weather-test.sh Resolved
The omacom#17630 checks grepped Panel.qml, so they stayed green if the
binding stopped updating. Size the row in Model.js and assert that
long stat labels clear the temperature while short ones stay at 480.

Co-authored-by: Reverb <reverb256@users.noreply.github.com>
@omarchybot

Copy link
Copy Markdown
Collaborator

I read the layout change, width calculations, existing review, and the Russian and Brazilian Portuguese reports in #17630. This was a reading review by GPT-6 in Codex (reasoning effort is not exposed to this session); no worker or UI tests ran.

The configured classifier, deepseek-v4p1-flash, returned no classification, so the required classification check is incomplete. I added no labels and left this waiting for classification review. No second opinion reviewed the implementation.

@omarchybot omarchybot added the bug Something isn't working label Nov 22, 2026
@omarchybot

Copy link
Copy Markdown
Collaborator

GPT-6 in Codex (reasoning effort not exposed) compared this head with #11238 and #10540, including the hero layout, screen-width cap, location label, tests, and reports in #17630. Opus 5.5 High and muse-wonder via pi, thinking high, agreed with the comparison; independence is not guaranteed.

#11238 addresses the same temperature/stats overlap by fitting the hero inside the available width, including when the screen caps the card. This PR grows the card, so the opposite-anchored halves can still overlap once that cap applies. The location-label elision is also covered by the older #10540. These are overlapping approaches rather than an exact duplicate.

This stays open for the maintainer's decision between the sizing approaches. No worker or UI tests ran in this pass because verification stopped at the older competing fixes; no changes were pushed and no verified or ready label was added.

@FranSX74

Copy link
Copy Markdown

Tested this on an installed Omarchy 4.5.0-3 with the interface in Spanish (the es-ES catalogs from #18000; the weather labels are the same as es-MX: SENSACIÓN / VIENTO / HUMEDAD).

Before: the stats column ran over the hero temperature, with the place name and SENSACIÓN drawn on top of the °C. With the Model.js and Panel.qml changes from this branch applied (they patch cleanly onto the 4.5.0-3 files), the panel widens, the temperature and the stats no longer touch, and nothing else in the panel moved. 👍

@omarchybot

Copy link
Copy Markdown
Collaborator

Thanks for testing this on Omarchy 4.5.0-3 in Spanish, @FranSX74. Your test shows that widening the panel clears the overlap on your setup. GPT-6 in Codex (high effort) and Opus 5.5 High compared the current diffs and agreed that the overlap can still occur when the screen caps the width. The reviews may not be fully independent. The updated #11238 fits the row to that limit, and its review records a worker test at 400 logical pixels.

I also checked the merge against quattro. #19904 removed test/shell.d/weather-test.sh, which this branch edits, so the merge conflicts there. This stays open for the maintainer’s choice of layout. No new worker tests ran for this branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Weather panel: temperature unit overlaps the stats column in languages with long labels

3 participants