Skip to content

Commit f7cb314

Browse files
committed
add spacer
1 parent 119e6cc commit f7cb314

File tree

2 files changed

+24
-15
lines changed

2 files changed

+24
-15
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -730,7 +730,7 @@ qx.Class.define("osparc.dashboard.CardBase", {
730730
}
731731

732732
this._getChildren().forEach(item => {
733-
if (item) {
733+
if (item && "setOpacity" in item) {
734734
item.setOpacity(enabled ? 1.0 : 0.7);
735735
}
736736
});

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

Lines changed: 23 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,10 @@ qx.Class.define("osparc.dashboard.ListButtonBase", {
3434

3535
const layout = new qx.ui.layout.Grid();
3636
layout.setSpacing(10);
37-
layout.setColumnFlex(osparc.dashboard.ListButtonBase.POS.TITLE, 1);
37+
layout.setColumnFlex(osparc.dashboard.ListButtonBase.POS.SPACER, 1);
3838
this._setLayout(layout);
39+
40+
this.getChildControl("spacer");
3941
},
4042

4143
statics: {
@@ -45,18 +47,19 @@ qx.Class.define("osparc.dashboard.ListButtonBase", {
4547
THUMBNAIL: 0,
4648
LOCK_STATUS: 1,
4749
TITLE: 2,
48-
PROGRESS: 3,
49-
TAGS: 4,
50-
UPDATES: 5,
51-
UI_MODE: 6,
52-
STATUS: 7,
53-
PERMISSION: 8,
54-
TSR: 9,
55-
OWNER: 10,
56-
SHARED: 11,
57-
LAST_CHANGE: 12,
58-
HITS: 13,
59-
OPTIONS: 14
50+
SPACER: 3,
51+
PROGRESS: 4,
52+
TAGS: 5,
53+
UPDATES: 6,
54+
UI_MODE: 7,
55+
STATUS: 8,
56+
PERMISSION: 9,
57+
TSR: 10,
58+
OWNER: 11,
59+
SHARED: 12,
60+
LAST_CHANGE: 13,
61+
HITS: 14,
62+
OPTIONS: 15
6063
}
6164
},
6265

@@ -85,14 +88,20 @@ qx.Class.define("osparc.dashboard.ListButtonBase", {
8588
font: "text-14",
8689
alignY: "middle",
8790
maxWidth: 300,
88-
allowGrowX: true,
8991
rich: true,
9092
});
9193
this._add(control, {
9294
row: 0,
9395
column: osparc.dashboard.ListButtonBase.POS.TITLE
9496
});
9597
break;
98+
case "spacer":
99+
control = new qx.ui.core.Spacer();
100+
this._add(control, {
101+
row: 0,
102+
column: osparc.dashboard.ListButtonBase.POS.SPACER
103+
});
104+
break;
96105
case "owner":
97106
control = new qx.ui.basic.Label().set({
98107
textColor: "contrasted-text-dark",

0 commit comments

Comments
 (0)