Skip to content

fix(#278): header status label inflates natural width with long status strings#279

Open
pwsandoval wants to merge 2 commits intocachebag:masterfrom
pwsandoval:master
Open

fix(#278): header status label inflates natural width with long status strings#279
pwsandoval wants to merge 2 commits intocachebag:masterfrom
pwsandoval:master

Conversation

@pwsandoval
Copy link

#278

Motivation

The header status label was inflating natural width with long strings, making compositor width behavior look ignored.

Description

This PR applies a surgical change in nmrs-gui/src/ui/mod.rs:

  • import pango::EllipsizeMode
  • set status.set_xalign(0.0)
  • set status.set_ellipsize(EllipsizeMode::End)
  • set status.set_max_width_chars(36)

No changes were made to networks.rs, wired_devices.rs, CSS, Stack/homogeneity, wrapping, or hard size requests/clamps.

Testing

  • cargo fmt --all
  • cargo test -p nmrs --all-features
  • cargo test -p nmrs-gui ⚠️ could not run in this environment due to missing system GTK/GLib development libraries (glib-2.0.pc not found via pkg-config).

AI disclosure

Per CONTRIBUTING.md, AI assistance was used to implement this small change and draft the PR description. I reviewed the diff and outputs before submission.

Copy link
Owner

@cachebag cachebag left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this! Could you clean up your commit history? We don't usually merge in PRs with Merge commits in their history.

@cachebag cachebag added bug Something isn't working nmrs-gui Changes attribute to nmrs-gui labels Mar 14, 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 nmrs-gui Changes attribute to nmrs-gui

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants