window-list: Adjust to workspace-indicator changes

Keep the `.panel-button` class to get the expected hover/focus/active
styling when using a regular menu button, but remove the horizontal
padding when using previews for fittsability.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell-extensions/-/merge_requests/405>
This commit is contained in:
Florian Müllner
2025-05-30 16:39:22 +02:00
parent 1899d502a9
commit 76514e8b23
2 changed files with 5 additions and 6 deletions
-6
View File
@@ -1472,12 +1472,6 @@ class BottomWorkspaceIndicator extends WorkspaceIndicator {
GObject.registerClass(this);
}
constructor(params) {
super(params);
this.remove_style_class_name('panel-button');
}
setMenu(menu) {
super.setMenu(menu);
@@ -6,6 +6,11 @@
*/
@import url("stylesheet-workspace-switcher-dark.css");
.window-list-workspace-indicator.previews {
-natural-hpadding: 0 !important;
-minimum-hpadding: 0 !important;
}
.window-list {
spacing: 2px;
font-size: 10pt;