Bug 505698 - KRunner faded completion text overflow
Summary: KRunner faded completion text overflow
Status: RESOLVED FIXED
Alias: None
Product: krunner
Classification: Plasma
Component: general (other bugs)
Version First Reported In: 6.3.3
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2025-06-17 15:01 UTC by jackyzy823
Modified: 2025-06-19 15:03 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 6.3.6
Sentry Crash Report:


Attachments
overflow (21.81 KB, image/png)
2025-06-17 15:01 UTC, jackyzy823
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jackyzy823 2025-06-17 15:01:57 UTC
Created attachment 182332 [details]
overflow

SUMMARY
After the fix in  bug 500290, KRunner faded completion text overflow.
When reverting this fix , text don't overflow.

STEPS TO REPRODUCE
1. Alt +F2 to open KRunner and enter a long command which longer than the input box.  For example `echo some_random_every_long_but_different_text_1234567891234567891223456789`
2. Alt +F2 again , enter "e" to make completion show

OBSERVED RESULT
See attachment

EXPECTED RESULT
The overflowed text is hidden or become ellipsis
Comment 1 Nate Graham 2025-06-17 16:49:17 UTC
Argh
Comment 2 Bug Janitor Service 2025-06-18 20:10:40 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/5605
Comment 3 Nate Graham 2025-06-19 14:56:55 UTC
Git commit 1640ac202d7373973bb474b240e145199d78e003 by Nate Graham.
Committed on 18/06/2025 at 20:02.
Pushed by ngraham into branch 'master'.

RunCommand: fix "hide faded completion text" calculation

Under certain circumstances, the text could still overflow. Fix the
calculation to use the implicitWidth of the text and not the
contentWidth, and allow it to elide again.
FIXED0IN: 6.3.6

M  +2    -1    krunner/qml/RunCommand.qml

https://invent.kde.org/plasma/plasma-workspace/-/commit/1640ac202d7373973bb474b240e145199d78e003
Comment 4 Nate Graham 2025-06-19 14:59:50 UTC
Git commit df682cd65ef27b6077a96bb491f94d8e3c5ac97a by Nate Graham.
Committed on 19/06/2025 at 14:59.
Pushed by ngraham into branch 'Plasma/6.3'.

RunCommand: fix "hide faded completion text" calculation

Under certain circumstances, the text could still overflow. Fix the
calculation to use the implicitWidth of the text and not the
contentWidth, and allow it to elide again.
FIXED-IN: 6.3.6
(cherry picked from commit 1640ac202d7373973bb474b240e145199d78e003)

M  +5    -1    krunner/qml/RunCommand.qml

https://invent.kde.org/plasma/plasma-workspace/-/commit/df682cd65ef27b6077a96bb491f94d8e3c5ac97a
Comment 5 Nate Graham 2025-06-19 15:03:14 UTC
Git commit bec44879a553e536cbc7f159b275bafce8e49e54 by Nate Graham.
Committed on 19/06/2025 at 14:57.
Pushed by ngraham into branch 'Plasma/6.4'.

RunCommand: fix "hide faded completion text" calculation

Under certain circumstances, the text could still overflow. Fix the
calculation to use the implicitWidth of the text and not the
contentWidth, and allow it to elide again.
FIXED0IN: 6.3.6


(cherry picked from commit 1640ac202d7373973bb474b240e145199d78e003)

Co-authored-by: Nate Graham <nate@kde.org>

M  +2    -1    krunner/qml/RunCommand.qml

https://invent.kde.org/plasma/plasma-workspace/-/commit/bec44879a553e536cbc7f159b275bafce8e49e54