Repository navigation
Conversation
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
[Medium impact] The PR appears safe to merge, with the previous finding addressed and no new actionable issues found. SummaryThe weather panel grows to fit long translated labels and elides long location names.
Reviews (2) · Last reviewed commit: "test(weather): check the hero row by wid..." · Reviewed by Greptile |
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>
|
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. |
|
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. |
|
Tested this on an installed Omarchy 4.5.0-3 with the interface in Spanish (the Before: the stats column ran over the hero temperature, with the place name and SENSACIÓN drawn on top of the °C. With the |
|
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 |
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
heroNeededWidthfrom the hero halves.fittedContentWidth, so a narrow screen can still cap it — compatible with the scale approach in Fit the weather panel to narrow popups #11238 / Weather plugin: Current location icon() overlaps on the current weather state #6991).English and other short-label languages stay at 480px.
Test plan
bash test/shell.d/weather-test.sh(passes, including new wiring asserts for Weather panel: temperature unit overlaps the stats column in languages with long labels #17630)qmllintonPanel.qml(only pre-existing Quickshell import-path warnings; nothing new on the Binding / elide)omarchy language→ Russian, open the weather panel; °C stays clear of the stats columnFixes #17630