@@ -81,20 +81,22 @@ qx.Class.define("osparc.dashboard.GridButtonItem", {
8181 layout = this . getChildControl ( "footer" ) ;
8282 layout . add ( control , osparc . dashboard . GridButtonBase . FPOS . HITS ) ;
8383 break ;
84- case "avatar-group" :
85- control = new osparc . ui . basic . AvatarGroup ( 24 , "left" , 150 ) ;
86- layout = this . getChildControl ( "main-layout" ) ;
87- layout . add ( control , osparc . dashboard . GridButtonBase . POS . AVATAR_GROUP ) ;
84+ case "avatar-group" : {
85+ const maxWidth = osparc . dashboard . GridButtonBase . ITEM_WIDTH - osparc . dashboard . GridButtonBase . PADDING * 2 ;
86+ control = new osparc . ui . basic . AvatarGroup ( 24 , "left" , maxWidth ) . set ( {
87+ paddingLeft : osparc . dashboard . GridButtonBase . PADDING ,
88+ } ) ;
89+ this . getChildControl ( "main-layout" ) . add ( control , osparc . dashboard . GridButtonBase . POS . AVATAR_GROUP ) ;
8890 break ;
91+ }
8992 case "tags" :
9093 control = new qx . ui . container . Composite ( new qx . ui . layout . Flow ( 5 , 3 ) ) . set ( {
9194 anonymous : true ,
9295 paddingLeft : osparc . dashboard . GridButtonBase . PADDING ,
9396 paddingRight : osparc . dashboard . GridButtonBase . PADDING ,
9497 paddingBottom : osparc . dashboard . GridButtonBase . PADDING / 2
9598 } ) ;
96- layout = this . getChildControl ( "main-layout" ) ;
97- layout . add ( control , osparc . dashboard . GridButtonBase . POS . TAGS ) ;
99+ this . getChildControl ( "main-layout" ) . add ( control , osparc . dashboard . GridButtonBase . POS . TAGS ) ;
98100 break ;
99101 case "menu-selection-stack" :
100102 control = new qx . ui . container . Stack ( ) ;
0 commit comments