Skip to content

Commit 251fc75

Browse files
committed
aesthetics
1 parent a9ac42e commit 251fc75

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

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

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ qx.Class.define("osparc.dashboard.SearchBarFilterProjects", {
2323

2424
this.base(arguments, "searchBarFilter-"+resourceType, "searchBarFilter");
2525

26-
this._setLayout(new qx.ui.layout.VBox(8));
26+
this._setLayout(new qx.ui.layout.VBox(10));
2727

2828
this.set({
2929
backgroundColor: "input_background",
@@ -125,6 +125,16 @@ qx.Class.define("osparc.dashboard.SearchBarFilterProjects", {
125125
this.getChildControl("search-bar-filter").set({
126126
showFilterMenu: false,
127127
});
128+
const resetButton = this.getChildControl("search-bar-filter").getChildControl("reset-button");
129+
resetButton.set({
130+
paddingRight: 2, // 10-8
131+
opacity: 0.7,
132+
backgroundColor: "transparent",
133+
});
134+
osparc.utils.Utils.hideBorder(resetButton);
135+
resetButton.addListener("tap", () =>{
136+
this.exclude();
137+
});
128138

129139
radioGroup.add(myProjectsButton, templatesButton, publicProjectsButton);
130140
myProjectsButton.addListener("changeValue", this.__searchMyProjectsSelected, this);

services/static-webserver/client/source/class/osparc/utils/Utils.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -714,10 +714,6 @@ qx.Class.define("osparc.utils.Utils", {
714714
widget.getContentElement().setStyle("background-color", "transparent");
715715
},
716716

717-
removeBorder: function(widget) {
718-
widget.getContentElement().setStyle("border", "0px solid");
719-
},
720-
721717
hideBorder: function(widget) {
722718
widget.getContentElement().setStyle("border", "1px solid transparent");
723719
},

0 commit comments

Comments
 (0)