Skip to content

Commit 7c9ee1e

Browse files
committed
align buttons
1 parent 57514c4 commit 7c9ee1e

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

services/static-webserver/client/source/class/osparc/dashboard/ResourceFilter.js

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,8 @@ qx.Class.define("osparc.dashboard.ResourceFilter", {
104104
value: false,
105105
appearance: "filter-toggle-button",
106106
label: this.tr("Trash"),
107-
icon: "@FontAwesome5Solid/trash/18",
107+
icon: "@FontAwesome5Solid/trash/16",
108+
paddingLeft: 10, // align it with the context
108109
});
109110
trashButton.addListener("changeValue", e => {
110111
const trashEnabled = e.getData();
@@ -242,7 +243,7 @@ qx.Class.define("osparc.dashboard.ResourceFilter", {
242243
this.__tagButtons = [];
243244
layout.removeAll();
244245
osparc.store.Tags.getInstance().getTags().forEach((tag, idx) => {
245-
const button = new qx.ui.form.ToggleButton(null, "@FontAwesome5Solid/tag/18");
246+
const button = new qx.ui.form.ToggleButton(null, "@FontAwesome5Solid/tag/16");
246247
button.id = tag.getTagId();
247248
tag.bind("name", button, "label");
248249
tag.bind("color", button.getChildControl("icon"), "textColor");
@@ -266,7 +267,7 @@ qx.Class.define("osparc.dashboard.ResourceFilter", {
266267

267268

268269
if (this.__tagButtons.length > maxTags) {
269-
const showAllButton = new qx.ui.form.Button(this.tr("All Tags..."), "@FontAwesome5Solid/tags/20");
270+
const showAllButton = new qx.ui.form.Button(this.tr("All Tags..."), "@FontAwesome5Solid/tags/16");
270271
showAllButton.set({
271272
appearance: "filter-toggle-button"
272273
});
@@ -294,6 +295,10 @@ qx.Class.define("osparc.dashboard.ResourceFilter", {
294295
preferencesWindow.openTags();
295296
});
296297
layout.add(editTagsButton);
298+
299+
if (this.__resourceType === "study") {
300+
layout.getChildren().forEach(item => item.setPaddingLeft(10)); // align them with the context
301+
}
297302
},
298303
/* /TAGS */
299304

0 commit comments

Comments
 (0)