Skip to content

Commit 46d3496

Browse files
committed
support br
1 parent f04ca90 commit 46d3496

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,6 @@ qx.Class.define("osparc.dashboard.GridButtonBase", {
4848
SPACING_IN: 5,
4949
SPACING: 15,
5050
ICON_SIZE: 32,
51-
// TITLE_MAX_HEIGHT: 34, // two lines in Roboto
52-
TITLE_MAX_HEIGHT: 40, // two lines in Manrope
5351
THUMBNAIL_SIZE: 50,
5452
POS: {
5553
TITLE: {
@@ -119,7 +117,6 @@ qx.Class.define("osparc.dashboard.GridButtonBase", {
119117
grid.setSpacing(this.self().SPACING_IN);
120118
grid.setRowFlex(2, 1);
121119
grid.setColumnFlex(0, 1);
122-
grid.setRowMaxHeight(0, this.self().TITLE_MAX_HEIGHT);
123120

124121
control = new qx.ui.container.Composite().set({
125122
maxWidth: this.self().ITEM_WIDTH,
@@ -205,7 +202,6 @@ qx.Class.define("osparc.dashboard.GridButtonBase", {
205202
font: "text-14",
206203
padding: this.self().TITLE_PADDING,
207204
maxWidth: this.self().ITEM_WIDTH,
208-
maxHeight: this.self().TITLE_MAX_HEIGHT,
209205
});
210206
layout = this.getChildControl("header");
211207
layout.addAt(control, 0, {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ qx.Class.define("osparc.dashboard.GridButtonItem", {
9393
break;
9494
case "menu-button":
9595
this.getChildControl("title").set({
96-
maxWidth: osparc.dashboard.GridButtonBase.ITEM_WIDTH - osparc.dashboard.GridButtonBase.ICON_SIZE - this.self().MENU_BTN_DIMENSIONS,
96+
maxWidth: osparc.dashboard.GridButtonBase.ITEM_WIDTH - osparc.dashboard.GridButtonBase.ICON_SIZE - this.self().MENU_BTN_DIMENSIONS - 2,
9797
});
9898
control = new qx.ui.form.MenuButton().set({
9999
appearance: "form-button-outlined",

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ qx.Class.define("osparc.dashboard.NewPlusMenu", {
5151
"replace_me_product_name",
5252
osparc.store.StaticInfo.getInstance().getDisplayName()
5353
);
54+
title = title.replace(/<br>/g, " ");
5455
const menuButton = new qx.ui.menu.Button().set({
5556
icon: icon || null,
5657
label: title,

0 commit comments

Comments
 (0)