File tree Expand file tree Collapse file tree 3 files changed +2
-5
lines changed
services/static-webserver/client/source/class/osparc/dashboard Expand file tree Collapse file tree 3 files changed +2
-5
lines changed Original file line number Diff line number Diff 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 , {
Original file line number Diff line number Diff 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" ,
Original file line number Diff line number Diff 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 ( / < b r > / g, " " ) ;
5455 const menuButton = new qx . ui . menu . Button ( ) . set ( {
5556 icon : icon || null ,
5657 label : title ,
You can’t perform that action at this time.
0 commit comments