@@ -163,16 +163,16 @@ qx.Class.define("osparc.dashboard.GridButtonBase", {
163163 } ) ;
164164 break ;
165165 case "footer" : {
166- const fgrid = new qx . ui . layout . Grid ( ) ;
167- fgrid . setSpacing ( 2 ) ;
168- fgrid . setColumnFlex ( 0 , 1 ) ;
166+ const fGrid = new qx . ui . layout . Grid ( ) ;
167+ fGrid . setSpacing ( 2 ) ;
168+ fGrid . setColumnFlex ( 0 , 1 ) ;
169169 control = new qx . ui . container . Composite ( ) . set ( {
170170 backgroundColor : "background-card-overlay" ,
171171 padding : this . self ( ) . PADDING - 2 ,
172172 maxWidth : this . self ( ) . ITEM_WIDTH ,
173173 maxHeight : this . self ( ) . ITEM_HEIGHT
174174 } ) ;
175- control . setLayout ( fgrid ) ;
175+ control . setLayout ( fGrid ) ;
176176 break ;
177177 }
178178 case "title-row" :
@@ -185,6 +185,23 @@ qx.Class.define("osparc.dashboard.GridButtonBase", {
185185 flex : 1
186186 } ) ;
187187 break ;
188+ case "icon" : {
189+ layout = this . getChildControl ( "body" ) ;
190+ const maxWidth = this . self ( ) . ITEM_WIDTH ;
191+ control = new osparc . ui . basic . Thumbnail ( null , maxWidth , 124 ) ;
192+ control . getChildControl ( "image" ) . set ( {
193+ anonymous : true ,
194+ alignY : "middle" ,
195+ alignX : "center" ,
196+ allowGrowX : true ,
197+ allowGrowY : true
198+ } ) ;
199+ layout . getContentElement ( ) . setStyles ( {
200+ "border-width" : "0px"
201+ } ) ;
202+ layout . add ( control , { flex : 1 } ) ;
203+ break ;
204+ }
188205 case "title" :
189206 control = new qx . ui . basic . Label ( ) . set ( {
190207 textColor : "contrasted-text-light" ,
@@ -234,23 +251,6 @@ qx.Class.define("osparc.dashboard.GridButtonBase", {
234251 } ) ;
235252 break ;
236253 }
237- case "icon" : {
238- layout = this . getChildControl ( "body" ) ;
239- const maxWidth = this . self ( ) . ITEM_WIDTH ;
240- control = new osparc . ui . basic . Thumbnail ( null , maxWidth , 124 ) ;
241- control . getChildControl ( "image" ) . set ( {
242- anonymous : true ,
243- alignY : "middle" ,
244- alignX : "center" ,
245- allowGrowX : true ,
246- allowGrowY : true
247- } ) ;
248- layout . getContentElement ( ) . setStyles ( {
249- "border-width" : "0px"
250- } ) ;
251- layout . add ( control , { flex : 1 } ) ;
252- break ;
253- }
254254 case "thumbnail" : {
255255 layout = this . getChildControl ( "body" ) ;
256256 const maxWidth = this . self ( ) . ITEM_WIDTH ;
0 commit comments