Skip to content

Prevent Network details and Weather hero text collisions with wide fonts - #20665

Open
techmandan wants to merge 1 commit into
omacom:quattrofrom
techmandan:fix/issue-17851-panel-text-layout
Open

techmandan wants to merge 1 commit into
omacom:quattrofrom
techmandan:fix/issue-17851-panel-text-layout

Conversation

@techmandan

Copy link
Copy Markdown

Summary

  • shell/plugins/panels/network/Panel.qml: Give IP Address and Gateway full-width value cells (Layout.columnSpan: 3), adjust grid spacing/margins, and add Layout.minimumWidth: 0 + elide: Text.ElideRight to DetailValue so right-aligned values never overlap their labels even with wide fonts like Monocraft.
  • shell/plugins/panels/weather/Panel.qml: Scale heroIcon and tempBig with Style.fontBaseSize, replace opposing anchors with a RowLayout + spacer, elide the location city name, and let panel.contentWidth expand via panel.fittedContentWidth(...) when wide fonts require more room.
  • Add Quickshell runtime layout regression tests in 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, and test/shell.d/weather-panel-runtime-test.sh (both verified to fail before the fix).

Verification

  • Passed: network-panel-runtime-test.sh, weather-panel-runtime-test.sh, network-test.sh, qml-text-format-test.sh, and i18n-test.sh.

Fixes #17851

@greptile-apps

greptile-apps Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5 · The PR appears safe to merge; no actionable issues were found.RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; no actionable issues were found.

Summary

Adjusts the Network and Weather panels to keep text from colliding with wider fonts.

  • Network details give long values room without crowding their labels.
  • Weather panels keep the hero text and location apart as fonts change.

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

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

Copy link
Copy Markdown
Collaborator

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 Refs #17851 to keep that symptom tracked.

omarchybot added a commit to avk458/omarchy that referenced this pull request Nov 28, 2026
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>
@chessing234

Copy link
Copy Markdown
Contributor

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.

@omarchybot

Copy link
Copy Markdown
Collaborator

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

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.

Update: Font Rendering and Text Layout Issues Still Persist in Omarchy 4.5.0-3

3 participants