apps-menu: Use stylesheet to set width

The `style` property is useful for computed CSS declarations,
but for regular styling the stylesheet is preferable.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell-extensions/-/merge_requests/290>
This commit is contained in:
Florian Müllner
2023-11-23 21:08:31 +01:00
parent f6a6bdda99
commit 8c8f990a28
2 changed files with 2 additions and 1 deletions
-1
View File
@@ -590,7 +590,6 @@ class ApplicationsButton extends PanelMenu.Button {
_display() {
this._applicationsButtons.clear();
this.mainBox.style = 'width: 35em;';
this.mainBox.hide();
// Load categories
+2
View File
@@ -4,6 +4,8 @@
* SPDX-License-Identifier: GPL-2.0-or-later
*/
.apps-menu {width: 26em;}
.apps-menu:ltr {
padding-right: 3px;
}