Skip to content

Commit a0c5c80

Browse files
authored
🎨 [Frontend] Team Black feedback 20.06 (#5971)
1 parent 5b226d1 commit a0c5c80

File tree

6 files changed

+12
-15
lines changed

6 files changed

+12
-15
lines changed

services/static-webserver/client/source/class/osparc/desktop/WorkbenchView.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -985,7 +985,10 @@ qx.Class.define("osparc.desktop.WorkbenchView", {
985985
this.getChildControl("side-panel-right-tabs").setSelection([this.__serviceOptionsPage]);
986986

987987
const spacing = 8;
988-
const vBox = new qx.ui.container.Composite(new qx.ui.layout.VBox(spacing*2));
988+
const vBox = new qx.ui.container.Composite(new qx.ui.layout.VBox().set({
989+
separator: "separator-vertical",
990+
spacing: spacing*2
991+
}));
989992

990993
// INPUTS FORM
991994
if (node.isPropertyInitialized("propsForm") && node.getPropsForm()) {

services/static-webserver/client/source/class/osparc/file/FilePicker.js

+1-9
Original file line numberDiff line numberDiff line change
@@ -464,15 +464,7 @@ qx.Class.define("osparc.file.FilePicker", {
464464
},
465465

466466
__buildAppModeLayout: function() {
467-
let msg = this.tr("In order to Select a File you have three options:");
468-
const options = [
469-
this.tr("- Upload a New File"),
470-
this.tr("- Provide a File Link"),
471-
this.tr("- Select a File from other ") + osparc.product.Utils.getStudyAlias()
472-
];
473-
for (let i=0; i<options.length; i++) {
474-
msg += "<br>" + options[i];
475-
}
467+
const msg = this.tr("In order to Select a File you have three options:");
476468
const intro = new qx.ui.basic.Label(msg).set({
477469
font: "text-16",
478470
rich: true

services/static-webserver/client/source/class/osparc/form/renderer/PropForm.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,8 @@ qx.Class.define("osparc.form.renderer.PropForm", {
487487
label: this.tr("Input"),
488488
icon: "@FontAwesome5Solid/plus/14",
489489
marginTop: 6,
490-
allowGrowX: false
490+
allowGrowX: false,
491+
minWidth: 70
491492
});
492493
addPortButton.addListener("execute", () => this.__addInputPortButtonClicked());
493494
this._add(addPortButton, {

services/static-webserver/client/source/class/osparc/info/StudyUtils.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,8 @@ qx.Class.define("osparc.info.StudyUtils", {
190190
const cb = new qx.ui.form.CheckBox().set({
191191
value: "disableServiceAutoStart" in devObj ? !devObj["disableServiceAutoStart"] : true,
192192
label: qx.locale.Manager.tr("Autostart services"),
193-
toolTipText: qx.locale.Manager.tr("This will help opening and closing studies faster"),
193+
font: "text-14",
194+
toolTipText: qx.locale.Manager.tr("Disabling this will help opening and closing studies/projects faster"),
194195
iconPosition: "right"
195196
});
196197
cb.addListener("changeValue", e => {

services/static-webserver/client/source/class/osparc/notification/NotificationsContainer.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ qx.Class.define("osparc.notification.NotificationsContainer", {
2929
maxHeight: 250,
3030
backgroundColor: "background-main-3"
3131
});
32+
osparc.utils.Utils.setIdToWidget(this, "notificationsContainer");
3233

3334
const root = qx.core.Init.getApplication().getRoot();
3435
root.add(this, {
@@ -37,7 +38,6 @@ qx.Class.define("osparc.notification.NotificationsContainer", {
3738
});
3839

3940
const notificationsContainer = this.__container = new qx.ui.container.Composite(new qx.ui.layout.VBox(1));
40-
osparc.utils.Utils.setIdToWidget(notificationsContainer, "notificationsContainer");
4141
const scrollContainer = new qx.ui.container.Scroll();
4242
scrollContainer.add(notificationsContainer);
4343
this._add(scrollContainer, {

services/static-webserver/client/source/class/osparc/workbench/WorkbenchUI.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ qx.Class.define("osparc.workbench.WorkbenchUI", {
5656
},
5757

5858
statics: {
59-
getDashedBorderSytle(isRight) {
59+
getDashedBorderStyle(isRight) {
6060
const side = isRight ? "right" : "left";
6161
const borderStyle = {};
6262
borderStyle["background-image"] = `linear-gradient(to bottom, #3D3D3D 50%, rgba(255, 255, 255, 0) 0%)`;
@@ -273,7 +273,7 @@ qx.Class.define("osparc.workbench.WorkbenchUI", {
273273
allowGrowX: false,
274274
padding: [0, 6]
275275
});
276-
inputOutputNodesLayout.getContentElement().setStyles(this.self().getDashedBorderSytle(isInput));
276+
inputOutputNodesLayout.getContentElement().setStyles(this.self().getDashedBorderStyle(isInput));
277277
const title = new qx.ui.basic.Label(label).set({
278278
alignX: "center",
279279
margin: [15, 0],

0 commit comments

Comments
 (0)