Bug 507728 - Width is not consistent between search results
Summary: Width is not consistent between search results
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Application Menu (Kicker) widget (other bugs)
Version First Reported In: 6.4.3
Platform: Arch Linux Linux
: NOR minor
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-08-01 09:55 UTC by Antonino Scordino
Modified: 2025-12-03 21:35 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In: 6.5.0
Sentry Crash Report:


Attachments
Application Menu adapts long width from previous searches (13.85 KB, image/jpeg)
2025-08-01 09:55 UTC, Antonino Scordino
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Antonino Scordino 2025-08-01 09:55:39 UTC
Created attachment 183701 [details]
Application Menu adapts long width from previous searches

SUMMARY
Whenever 'Kicker' (Application Menu) changes its width in order to adapt to an application with a long title, or to expand its search to system settings and other, the "Applications" tab width changes on its own, and does not recover on future searches. 

STEPS TO REPRODUCE
1. Switch to the 'Kicker' (Application Menu) applet
2. Search for an application with a long name, or search for a singular word that triggers search expansion (harder to reproduce this way)

OBSERVED RESULT
The width of the "Application" tab changes, and it persists between different instances of using 'Kicker'. Logging-off and re-logging or switching to "Application Launcher" and then back to "Application Menu" restores the original length.

EXPECTED RESULT
The width of the "Application" tab remains untouched.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.4.3
KDE Frameworks Version: 6.16.0
Qt Version: 6.9.1

ADDITIONAL INFORMATION
This bug report was harder to fill with information. As stated above, it's way harder to reproduce it with expanded search result, and it's possible to do so instead with an application with a long title (e.g. manually editing one's via the "Menu Editor")
Comment 1 Antonino Scordino 2025-08-01 09:57:28 UTC
This might fall into the 'wishlist' category rather than the 'bug' one, but it would be nice if all the different tabs (say, "Applications", "System Settings", "File Search" and so on) had one fixed width and, in case of the presence of a long title, hovering on the item would show its full name.
Comment 2 TraceyC 2025-08-05 20:41:19 UTC
I'm able to reproduce on git-master

To more easily try to reproduce, I renamed one of the menu entries (Accerciser) to be very long
Enter "Fir" which only brings up Firefox and Discover in the Applications tab, noted the width
Entered "Access" - which brings up Accerciser (with its custom long name) - the App Menu was wider
Enter "Fir" again, observe the menu width remains wide
Comment 3 Bug Janitor Service 2025-09-07 13:29:47 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/3182
Comment 4 cwo 2025-12-03 21:35:19 UTC
Git commit 7a5e73cc0509ec14868b1e85dcf1c064c0dc0923 by Christoph Wolk.
Committed on 03/12/2025 at 21:16.
Pushed by cwo into branch 'master'.

applets/kicker: simplify column/delegate widths

Kicker does lots of manual size calulations for delegates, listviews,
and their widths. This is somewhat cumbersome and makes the workings
harder to understand and change.

Instead, we can switch this over to using layouts and have Qt do the
work for us. We still percolate sizes upward to the listview, bounded by
the maximum and minimum widths, but properly reset them now, so that if
the column width will not persist in an increased state longer than
necessary.
FIXED-IN: 6.5.0

M  +29   -35   applets/kicker/ItemListDelegate.qml
M  +1    -0    applets/kicker/ItemListDialog.qml
M  +25   -6    applets/kicker/ItemListView.qml
M  +1    -1    applets/kicker/MenuRepresentation.qml
M  +3    -2    applets/kicker/RunnerResultsList.qml

https://invent.kde.org/plasma/plasma-desktop/-/commit/7a5e73cc0509ec14868b1e85dcf1c064c0dc0923