| Summary: | “Search the web for”, which appears when no results exist for a search query, is elongated, at very low resolution, when many long characters are entered into the search form | ||
|---|---|---|---|
| Product: | [Applications] Discover | Reporter: | Roke Julian Lockhart Beedell <4wy78uwh> |
| Component: | discover | Assignee: | Plasma Bugs List <plasma-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | minor | CC: | aleixpol |
| Priority: | NOR | ||
| Version First Reported In: | 6.5.4 | ||
| Target Milestone: | --- | ||
| Platform: | Fedora RPMs | ||
| OS: | Linux | ||
| Latest Commit: | https://invent.kde.org/frameworks/kirigami/-/commit/ab6f5813504b71d394f82330f1433db35190358f | Version Fixed/Implemented In: | |
| Sentry Crash Report: | |||
| Attachments: | A Screenshot That Demonstrates The Low-Resolution, Elongated Button | ||
|
Description
Roke Julian Lockhart Beedell
2026-01-04 23:32:17 UTC
A possibly relevant merge request was started @ https://invent.kde.org/frameworks/kirigami/-/merge_requests/2022 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 |