Repository navigation
Prevent Network details and Weather hero text collisions with wide fonts - #20665
techmandan wants to merge 1 commit into
Conversation
[Medium impact] The PR appears safe to merge; no actionable issues were found. SummaryAdjusts the Network and Weather panels to keep text from colliding with wider fonts.
No actionable issues were found. Tests and live visual checks were not run during this review. Reviews (1) · Last reviewed commit: "Prevent text overlap in network and weat..." · Reviewed by Greptile |
|
GPT-6 in Codex (high effort) reviewed the diffs and the report screenshots. Opus 5.5 High compared the competing fixes. The broader review favored #8741 for the reported IP/Gateway spacing, while a focused review found that this PR also elides oversized values in the other Network rows. #8741 already gives addresses their own rows and reflows the grid when the panel is narrow. For Weather, the broader review favored #17633’s full-size text when the card has room to grow and identified a gap when the screen caps the card. The earlier #11238 fits both the hero and forecast rows at that cap and was previously exercised on a worker at small text sizes. I queued the focused Network regression coverage for #8741 and the font-aware sizing and layout coverage for #11238. This head had a source review and awaits the maintainer’s choice. The reviewer's independence is not guaranteed. The closing reference would also close the Files rename clipping report in #17851, which is still open work. Use |
Use one label and value per row when the translated labels and a representative rate no longer fit two pairs. Keep live samples out of the width calculation so the grid does not jump when traffic changes. Give a narrow row more room for its value, and elide text that still cannot fit without changing what an address click copies. Extend the Network panel runtime check from omacom#20665 with stock, large-font and narrow cases. Co-Authored-By: Tech Man Dan <dan.inman@hotmail.co.uk> Co-Authored-By: Opus 5.5 High <noreply@anthropic.com> Co-Authored-By: GPT-6 High in Codex <noreply@openai.com>
|
your commit is in #21016. the weather card still grows with the text. the stacked hero from #20226 stayed, so the wide-font row layout was not taken over it. network details keep one pair per row on a narrow screen, with your tighter column gap. @dhh @omarchybot if 21016 lands, this can close as superseded. |
|
GPT-6.2 Sol in Codex (high effort) and Opus 5.5 High compared the diffs. #21016 keeps Dan’s font-aware Weather sizing and both fixtures, with #20226’s stacked Weather hero. This was a source review. Reviewer independence is not guaranteed. At narrow widths, #21016 switches Network to two columns while IP Address, Gateway, Public IP and Country still request three-column spans. Qt stops placing items when it encounters the oversized span. The copied Network fixture also expects 16 text items, and the two new rows bring that to 20. #8741 ties the address spans to the grid width, and #11238 exercises Weather at a capped width. This PR stays open for the maintainer’s decision. Qt grid layout implementation |
Summary
shell/plugins/panels/network/Panel.qml: GiveIP AddressandGatewayfull-width value cells (Layout.columnSpan: 3), adjust grid spacing/margins, and addLayout.minimumWidth: 0+elide: Text.ElideRighttoDetailValueso right-aligned values never overlap their labels even with wide fonts like Monocraft.shell/plugins/panels/weather/Panel.qml: ScaleheroIconandtempBigwithStyle.fontBaseSize, replace opposing anchors with aRowLayout+ spacer, elide the location city name, and letpanel.contentWidthexpand viapanel.fittedContentWidth(...)when wide fonts require more room.test/shell.d/fixtures/network-panel/details-layout.qml,test/shell.d/network-panel-runtime-test.sh,test/shell.d/fixtures/weather-panel/hero-layout.qml, andtest/shell.d/weather-panel-runtime-test.sh(both verified to fail before the fix).Verification
network-panel-runtime-test.sh,weather-panel-runtime-test.sh,network-test.sh,qml-text-format-test.sh, andi18n-test.sh.Fixes #17851