popupMenu: Never add ornament padding to image items
PopupImageMenuItem moves the ornament after the label, so we don't need the additional padding that accounts for visible ornaments for regular items. Spotted by Sebastian Keller. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2843>
This commit is contained in:
parent
ad34082fd1
commit
8e9398be7e
@ -474,6 +474,11 @@ class PopupImageMenuItem extends PopupBaseMenuItem {
|
|||||||
else
|
else
|
||||||
this._icon.icon_name = icon;
|
this._icon.icon_name = icon;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_updateOrnamentStyle() {
|
||||||
|
// we move the ornament after the label, so we don't need
|
||||||
|
// additional padding regardless of ornament visibility
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
var PopupMenuBase = class extends Signals.EventEmitter {
|
var PopupMenuBase = class extends Signals.EventEmitter {
|
||||||
|
Loading…
Reference in New Issue
Block a user