Created attachment 144716 [details] screenshot showing the space before open with menu marked with red XX SUMMARY When you open an image in gwenview the sidebar has a file operation section in it. There is a open with menu in this list. Currently there is some weird empty space before the text. This could be the space reserved for icons as all other texts have corresponding icons except this entry, but it is also miss aligned to the other texts. I am attaching a screenshot to show this space for your reference.
Can reproduce.
This seems to be a bug in the Breeze style. Somehow giving this action a menu causes it to be indented too much on the left. Removing the `mOpenWithAction->setMenu(menu);` line gets rid of the extra margin. See https://invent.kde.org/graphics/gwenview/-/blob/master/app/fileopscontextmanageritem.cpp#L192
I tried to fix the big by reading Breeze code, but found nothing and I should say the coding style is weird (maybe ancient). Setting subcontrol-position: right center; will fix the alignment issue, but the arrow position becomes incorrect.
A possibly relevant merge request was started @ https://invent.kde.org/plasma/breeze/-/merge_requests/169
Git commit 47a015cde2951af65fe17c20bdbe0034cb48359d by Fushan Wen. Committed on 15/01/2022 at 05:12. Pushed by fusionfuture into branch 'master'. breezestyle: Remove extra margin for InstantPopup Assigning a menu with instant popup mode to an action gives it excessive left padding. Removing the extra margin fixes it. M +0 -6 kstyle/breezestyle.cpp https://invent.kde.org/plasma/breeze/commit/47a015cde2951af65fe17c20bdbe0034cb48359d
Git commit 7519dec9b55fd58662a7f79c157ec032acca6a2f by Nate Graham, on behalf of Fushan Wen. Committed on 18/01/2022 at 20:30. Pushed by ngraham into branch 'Plasma/5.24'. breezestyle: Remove extra margin for InstantPopup Assigning a menu with instant popup mode to an action gives it excessive left padding. Removing the extra margin fixes it. (cherry picked from commit 47a015cde2951af65fe17c20bdbe0034cb48359d) M +0 -6 kstyle/breezestyle.cpp https://invent.kde.org/plasma/breeze/commit/7519dec9b55fd58662a7f79c157ec032acca6a2f