Skip to content

Commit 76265bb

Browse files
committed
remove description from list item
1 parent 87b1494 commit 76265bb

File tree

3 files changed

+14
-51
lines changed

3 files changed

+14
-51
lines changed

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

Lines changed: 13 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -28,45 +28,41 @@ qx.Class.define("osparc.dashboard.ListButtonBase", {
2828
construct: function() {
2929
this.base(arguments);
3030
this.set({
31-
width: osparc.dashboard.ListButtonBase.ITEM_WIDTH,
3231
minHeight: osparc.dashboard.ListButtonBase.ITEM_HEIGHT,
3332
allowGrowX: true
3433
});
3534

3635
const layout = new qx.ui.layout.Grid();
3736
layout.setSpacing(10);
38-
layout.setColumnFlex(osparc.dashboard.ListButtonBase.POS.DESCRIPTION, 1);
37+
layout.setColumnFlex(osparc.dashboard.ListButtonBase.POS.TITLE, 1);
3938
this._setLayout(layout);
4039
},
4140

4241
statics: {
43-
ITEM_WIDTH: 600,
4442
ITEM_HEIGHT: 40,
4543
SPACING: 5,
4644
POS: {
4745
THUMBNAIL: 0,
4846
LOCK_STATUS: 1,
4947
TITLE: 2,
5048
PROGRESS: 3,
51-
DESCRIPTION: 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
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
6360
}
6461
},
6562

6663
members: {
6764
_createChildControlImpl: function(id) {
6865
let control;
69-
let titleRow;
7066
switch (id) {
7167
case "icon": {
7268
control = new osparc.ui.basic.Thumbnail(null, 40, this.self().ITEM_HEIGHT-2*5).set({
@@ -83,16 +79,6 @@ qx.Class.define("osparc.dashboard.ListButtonBase", {
8379
});
8480
break;
8581
}
86-
case "title-row":
87-
control = new qx.ui.container.Composite(new qx.ui.layout.HBox(6)).set({
88-
anonymous: true,
89-
allowGrowX: true
90-
});
91-
this._add(control, {
92-
row: 0,
93-
column: osparc.dashboard.ListButtonBase.POS.TITLE
94-
});
95-
break;
9682
case "title":
9783
control = new qx.ui.basic.Label().set({
9884
textColor: "contrasted-text-light",
@@ -102,24 +88,9 @@ qx.Class.define("osparc.dashboard.ListButtonBase", {
10288
allowGrowX: true,
10389
rich: true,
10490
});
105-
titleRow = this.getChildControl("title-row");
106-
titleRow.addAt(control, 0, {
107-
flex: 1
108-
});
109-
break;
110-
case "description":
111-
control = new qx.ui.basic.Label().set({
112-
textColor: "contrasted-text-dark",
113-
rich: true,
114-
maxHeight: 16,
115-
minWidth: 100,
116-
font: "text-14",
117-
alignY: "middle",
118-
allowGrowX: true
119-
});
12091
this._add(control, {
12192
row: 0,
122-
column: osparc.dashboard.ListButtonBase.POS.DESCRIPTION
93+
column: osparc.dashboard.ListButtonBase.POS.TITLE
12394
});
12495
break;
12596
case "owner":

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,13 @@ qx.Class.define("osparc.dashboard.ListButtonLoadMore", {
3535
members: {
3636
_applyFetching: function(value) {
3737
const title = this.getChildControl("title");
38-
const desc = this.getChildControl("description");
3938
if (value) {
4039
title.setValue(this.tr("Loading..."));
41-
desc.setValue("");
4240
this.setIcon(osparc.dashboard.CardBase.LOADING_ICON);
4341
this.getChildControl("icon").getChildControl("image").getContentElement()
4442
.addClass("rotate");
4543
} else {
4644
title.setValue(this.tr("Load More"));
47-
desc.setValue(this.tr("Click to load more").toString());
4845
this.setIcon("@FontAwesome5Solid/paw/");
4946
this.getChildControl("icon").getChildControl("image").getContentElement()
5047
.removeClass("rotate");

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

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
qx.Class.define("osparc.dashboard.ListButtonNew", {
2525
extend: osparc.dashboard.ListButtonBase,
2626

27-
construct: function(title, description) {
27+
construct: function(title) {
2828
this.base(arguments);
2929

3030
this.setPriority(osparc.dashboard.CardBase.CARD_PRIORITY.NEW);
@@ -41,11 +41,6 @@ qx.Class.define("osparc.dashboard.ListButtonNew", {
4141
});
4242
}
4343

44-
if (description) {
45-
const descLabel = this.getChildControl("description");
46-
descLabel.setValue(description);
47-
}
48-
4944
this.setIcon(osparc.dashboard.CardBase.NEW_ICON);
5045
},
5146

0 commit comments

Comments
 (0)