Skip to content

keyboard applet: never ellipsize the layout code in the panel - #13950

Open
rumours86 wants to merge 1 commit into
linuxmint:masterfrom
rumours86:keyboard-applet-no-ellipsize
Open

keyboard applet: never ellipsize the layout code in the panel#13950
rumours86 wants to merge 1 commit into
linuxmint:masterfrom
rumours86:keyboard-applet-no-ellipsize

Conversation

@rumours86

Copy link
Copy Markdown

When the panel runs out of space St shrinks the keyboard applet's label and renders the two-letter layout code ("En", "Ru") as "…". The ellipsis is as wide as the code itself, so nothing is saved — the current layout just becomes invisible, which defeats the applet's purpose.

The recently added min-width: 2.5em stabilizes the width in the normal case, but under real panel pressure St can still allocate below the natural size and Pango ellipsizes. This change additionally disables ellipsizing on the label (Pango.EllipsizeMode.NONE), so the code stays readable however tight the panel gets.

Spotted by a user with a full window list: the applet collapsed to "…" while barely changing width.

🤖 Generated with Claude Code

When the panel runs out of space St shrinks the applet's label and
renders the two-letter layout code ("En", "Ru") as "…".  The ellipsis
is as wide as the code itself, so nothing is saved - the current layout
just becomes invisible, which defeats the applet's purpose.

Keep the recently added constant min-width and additionally disable
ellipsizing on the label, so the code stays readable however tight the
panel gets.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@rumours86

Copy link
Copy Markdown
Author

Now verified against git master (built muffin + cinnamon 6.7.5, run nested at ui scale 2): reproduced on unpatched master — an applet-label St.Label with the stock min-width: 2.5em squeezed to a 30px allocation still reports layout.is_ellipsized() == true (the code renders as "…"); with ellipsize = Pango.EllipsizeMode.NONE the same setup reports is_ellipsized() == false and the code stays readable.

🤖 Addressed by Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant