Skip to content

Widen the network panel with a raised body-small font - #13574

Closed
manuaudio wants to merge 4 commits into
omacom:quattrofrom
manuaudio:fix/network-panel-fit-stat-grid
Closed

manuaudio wants to merge 4 commits into
omacom:quattrofrom
manuaudio:fix/network-panel-fit-stat-grid

Conversation

@manuaudio

@manuaudio manuaudio commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #13572.

The network panel puts two label/value pairs on each stat row using Style.font.bodySmall, but its design width stayed fixed at Style.space(380). Raising only [font] body-small therefore squeezed the value columns until values painted over labels, and at larger sizes the DNS button overflowed too.

I scale the panel's design width by bodySmall over that token's default (Style.fontPx(0.917)) and keep the existing fittedContentWidth cap:

  • The default factor is 1, so stock font settings keep the same 378 px panel.
  • A raised body-small widens the panel proportionally.
  • Width depends on font settings rather than live network values, so changing transfer rates cannot make the panel jitter.
  • Narrow screens still cap the panel to available space.

Eliding values was not a safe default: at the stock width it truncated IP and gateway values such as 192.168.50…. Sizing from the grid's implicit width also widened the default panel and made width depend on live content.

The QML runtime regression measures the real panel width at the default body-small, raises it to 16, waits for bindings to update, and requires the panel to grow. It fails on the original quattro code and passes with this change. After merging current upstream/quattro, bash test/shell.d/network-panel-runtime-test.sh and bash test/shell.d/network-test.sh pass. The conflict resolution preserves the newer lazy panel content API while retaining the width fix.

I visually checked the original change at body-small 11, 13, and 16. I did not repeat those screenshots after the conflict-only merge.

The stat grid sets two label and value pairs per row in body-small inside a fixed design width. Spacing follows the base font size but not a [font] body-small override, so raising body-small alone squeezed the value columns until values painted over their labels. The panel now scales its design width by body-small over its default, which leaves the default layout unchanged and keeps the width independent of the live values.

Fixes omacom#13572

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@greptile-apps

greptile-apps Bot commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] The PR appears safe to merge; the previous test concern is fixed and no new blocking issue was found.

Summary

The network panel grows when users raise body-small, while keeping the existing screen-width limit.

  • The network panel widens when its small text gets larger.

Reviews (3) · Last reviewed commit: "Test network panel width as QML behavior" · Reviewed by Greptile

@omarchybot omarchybot added bug Something isn't working verified Omarchy Triage has verified that this issue is ready for final review ready Good to merge and removed enhancement New feature or request labels Oct 15, 2026
@omarchybot

Copy link
Copy Markdown
Collaborator

Reviewed at 01d97f0 and verified on a fresh Omarchy worker. Nothing found that needs changing.

Reproduction. I loaded the real network panel under quickshell on the worker, with mocked networking and synthetic connection details, and measured every stat row at [font] body-small 11 (the default), 16 and 22:

  • On quattro (f5006bd), and on this branch with the Panel.qml change reverted, values paint over their labels at 16 (Downloaded, IP Address, Gateway) and at 22 (six of the eight rows). The grid stays 348px wide at every size.
  • On this branch, every row is clean at all three sizes. The grid grows to 521px at 16 and 728px at 22, and every row measures exactly as on quattro at the default size.

Suite. test/shell.d/network-test.sh passes on the worker (116 assertions), and its new assertion fails with the fix reverted. ./test/cli passes.

Review. The divisor Style.fontPx(0.917) is body-small's own rounded default, so the factor is exactly 1 for anyone who has not pinned body-small, whatever their base-size, and Math.max(1, …) leaves the width alone for a smaller pin. fittedContentWidth still caps the panel to the screen. The header, band and DNS buttons and the Wi-Fi list all take the available width, so a wider panel does not disturb them. What it does not cover: a reduced [spacing] scale, or a panel capped by a narrow screen, can still squeeze the grid. Neither is what #13572 reports, and fixing them means choosing a reflow policy.

Related. #8741 gives IP Address and Gateway their own full-width rows so long addresses fit at the default size. It is a different problem, and the two changes combine without conflict: #8741 alone still leaves Downloaded overlapping at body-small 16.

Second opinion from Codex at medium effort: it found no defect, agreed the change is proportionate and that #8741 complements it rather than competing with it, and pointed out the [spacing] limitation above. It may have read this session's working notes, so its agreement is not guaranteed to be independent.

This is now waiting on the maintainer.

@manuaudio

Copy link
Copy Markdown
Contributor Author

I merged current quattro into this branch as 56ba9f346. The only conflict was in test/shell.d/network-test.sh: upstream had intentionally removed the older IPC and scan-lifecycle assertions in #16334, so I kept upstream's current coverage and restored only this PR's body-small width regression. The production change is unchanged.

bash test/shell.d/network-test.sh passes, git diff upstream/quattro --check is clean, and a fresh Codex review found no blocking logic or compatibility issue. The earlier real-panel measurements at body-small 11, 16, and 22 still exercise the same production delta; I did not repeat the screenshots for this conflict-only merge. GitHub now reports the PR mergeable. The translation check is still running.

Comment thread test/shell.d/network-test.sh Resolved
@omarchybot omarchybot added verified Omarchy Triage has verified that this issue is ready for final review ready Good to merge and removed verified Omarchy Triage has verified that this issue is ready for final review ready Good to merge labels Oct 28, 2026
@omarchybot

Copy link
Copy Markdown
Collaborator

Reviewed again at 2474046, after the merge of quattro and the new runtime test, and verified on a fresh Omarchy worker. Nothing found that needs changing.

Reproduction. I loaded the real network panel under quickshell on the worker, with mocked networking and synthetic connection details, and measured every stat row at [font] body-small 11 (the default), 16 and 22:

  • On current quattro (7eedd17), and on this branch with the Panel.qml change reverted, values paint over their labels at 16 (Downloaded, IP Address, Gateway) and at 22 (six of the eight rows). The grid stays 348px wide at every size.
  • On this branch, every row is clean at all three sizes, and the grid grows to 521px at 16 and 728px at 22. At the default size it is 348px, the same as on quattro.

Suite. On the worker, test/shell.d/network-panel-runtime-test.sh and test/shell.d/network-test.sh pass, and so does ./test/cli. With the Panel.qml change reverted, the runtime test fails at the new check, "network panel widens with a raised body-small font". So the new test measures the panel's real contentWidth and fails without the fix, which settles Greptile's earlier point about the source-text assertion. The branch merges cleanly with current quattro.

Review. The production line is the same one reviewed at 01d97f0. The new test resets fontOverrides before the captive-portal checks, which don't depend on font state, so moving those checks into fontWidthChecks changes nothing they test. What the change still doesn't cover is the same as before: a reduced [spacing] scale, or a screen too narrow for the wider panel, can still squeeze the grid.

Related. #8741, which puts IP Address and Gateway on their own rows, still complements this rather than competing with it.

Second opinion from Codex at medium effort and from muse-wonder (via pi) at high thinking. Neither found a defect. Both agreed the change is proportionate, that the new test checks real behaviour, and that #8741 complements this change. They could read this session's notes, so their agreement may not be independent.

This is now waiting on the maintainer.

@manuaudio

Copy link
Copy Markdown
Contributor Author

Hi, this still merges cleanly, and the focused runtime test exercises the real panel at body-small 11, 16, and 22; reverting the production line makes that test fail. Is there anything I can change to make this easier to review? Happy to rebase or rework it if useful, and no rush.

@manuaudio

Copy link
Copy Markdown
Contributor Author

Closing to keep the review queue clean; happy to reopen if this is still wanted.

@manuaudio manuaudio closed this Nov 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working ready Good to merge verified Omarchy Triage has verified that this issue is ready for final review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Network panel stat rows overlap when [font] body-small is raised

2 participants