https://bugs.kde.org/show_bug.cgi?id=514164

cwo <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED
      Latest Commit|                            |https://invent.kde.org/fram
                   |                            |eworks/kirigami/-/commit/ab
                   |                            |6f5813504b71d394f82330f1433
                   |                            |db35190358f

--- Comment #2 from cwo <[email protected]> ---
Git commit ab6f5813504b71d394f82330f1433db35190358f by Christoph Wolk.
Committed on 05/01/2026 at 13:35.
Pushed by cwo into branch 'master'.

PlaceholderMessage: handle unusually long text better

PlacholderMessage has some pretty bad artifacts on some rather
pathological strings:

- The text and explanation are set to Text.WordWrap, so if there is
  a long character sequence with no (breaking) space, it will grow
  beyond the available space
- The text on the helpfulAction button, and therefore the button as a
  whole, can grow without bounds

None of these should ever matter in typical usage, but can be triggered
if they incorporate user input (as e.g. in search fields).

We can solve the first by switching to Text.Wrap - It will break at word
boundaries if possible, but if not, it's better to have a slightly
awkward wrap than to clip out of bounds. The second we can at least
paper over by setting a Layout.maximumWidth - it's not optimal as the
label will not elide, and show something from the center of the string.
But it's at least less broken, and there does not seem to be a way to
set button labels to elide except changing the QQC style (and in the
case of desktop style, this would mean changing the QStyle).

M  +3    -2    src/controls/PlaceholderMessage.qml

https://invent.kde.org/frameworks/kirigami/-/commit/ab6f5813504b71d394f82330f1433db35190358f

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to