Skip to content

Commit c1c8ff4

Browse files
committed
aesthetics
1 parent d72a8ee commit c1c8ff4

File tree

2 files changed

+27
-24
lines changed

2 files changed

+27
-24
lines changed

services/static-webserver/client/source/class/osparc/vipStore/AnatomicalModelDetails.js

Lines changed: 25 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -136,36 +136,38 @@ qx.Class.define("osparc.vipStore.AnatomicalModelDetails", {
136136
}
137137
});
138138

139-
const doiTitle = new qx.ui.basic.Label().set({
140-
value: "DOI",
141-
font: "text-14",
142-
alignX: "right",
143-
marginTop: 16,
144-
});
145-
moreInfoLayout.add(doiTitle, {
146-
column: 0,
147-
row: idx,
148-
});
149-
150-
const doiValue = new qx.ui.basic.Label().set({
151-
value: anatomicalModelsData["DOI"],
152-
font: "text-14",
153-
alignX: "left",
154-
marginTop: 16,
155-
});
156-
moreInfoLayout.add(doiValue, {
157-
column: 1,
158-
row: idx,
159-
});
139+
if (anatomicalModelsData["DOI"]) {
140+
const doiTitle = new qx.ui.basic.Label().set({
141+
value: "DOI",
142+
font: "text-14",
143+
alignX: "right",
144+
marginTop: 16,
145+
});
146+
moreInfoLayout.add(doiTitle, {
147+
column: 0,
148+
row: idx,
149+
});
150+
151+
const doiValue = new qx.ui.basic.Label().set({
152+
value: anatomicalModelsData["DOI"],
153+
font: "text-14",
154+
alignX: "left",
155+
marginTop: 16,
156+
});
157+
moreInfoLayout.add(doiValue, {
158+
column: 1,
159+
row: idx,
160+
});
161+
}
160162

161163
cardLayout.add(moreInfoLayout, {
162164
column: 1,
163165
row: 2,
164166
});
165-
167+
166168

167169
const leaseModelButton = new qx.ui.form.Button().set({
168-
label: this.tr("Lease model (2 months)"),
170+
label: this.tr("Lease model (2 for months)"),
169171
appearance: "strong-button",
170172
center: true,
171173
});

services/static-webserver/client/source/class/osparc/vipStore/AnatomicalModelListItem.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,8 @@ qx.Class.define("osparc.vipStore.AnatomicalModelListItem", {
114114
break;
115115
case "name":
116116
control = new qx.ui.basic.Label().set({
117-
font: "text-14"
117+
font: "text-14",
118+
alignY: "middle",
118119
});
119120
this._add(control, {
120121
row: 0,

0 commit comments

Comments
 (0)