keyboard applet: never ellipsize the layout code in the panel - #13950
Open
rumours86 wants to merge 1 commit into
Open
keyboard applet: never ellipsize the layout code in the panel#13950rumours86 wants to merge 1 commit into
rumours86 wants to merge 1 commit into
Conversation
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>
Author
|
Now verified against git master (built muffin + cinnamon 6.7.5, run nested at ui scale 2): reproduced on unpatched master — an 🤖 Addressed by Claude Code |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.5emstabilizes 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