File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
services/static-webserver/client/source/class/osparc/user Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ qx.Class.define("osparc.user.UserDetails", {
2727 showMaximize : false ,
2828 showMinimize : false ,
2929 clickAwayClose : true ,
30+ padding : 10 ,
3031 } ) ;
3132
3233 this . setUserGroupId ( userGroupId ) ;
@@ -35,6 +36,7 @@ qx.Class.define("osparc.user.UserDetails", {
3536 statics : {
3637 WIDTH : 400 ,
3738 HEIGHT : 300 ,
39+ THUMBNAIL_SIZE : 110 ,
3840
3941 TOP_GRID : {
4042 USERNAME : 0 ,
@@ -77,11 +79,11 @@ qx.Class.define("osparc.user.UserDetails", {
7779 let control ;
7880 switch ( id ) {
7981 case "top-layout" :
80- control = new qx . ui . container . Composite ( new qx . ui . layout . HBox ( 20 ) ) ;
82+ control = new qx . ui . container . Composite ( new qx . ui . layout . HBox ( 30 ) ) ;
8183 this . add ( control ) ;
8284 break ;
8385 case "thumbnail" :
84- control = new osparc . ui . basic . Thumbnail ( null , 100 , 100 ) ;
86+ control = new osparc . ui . basic . Thumbnail ( null , this . self ( ) . THUMBNAIL_SIZE , this . self ( ) . THUMBNAIL_SIZE ) ;
8587 control . getChildControl ( "image" ) . set ( {
8688 anonymous : true ,
8789 decorator : "rounded" ,
@@ -276,7 +278,7 @@ qx.Class.define("osparc.user.UserDetails", {
276278 __applyUser : function ( user ) {
277279 this . setCaption ( user . getUsername ( ) ) ;
278280
279- this . getChildControl ( "thumbnail" ) . setSource ( user . createThumbnail ( 96 ) ) ;
281+ this . getChildControl ( "thumbnail" ) . setSource ( user . createThumbnail ( this . self ( ) . THUMBNAIL_SIZE ) ) ;
280282
281283 // top grid
282284 this . getChildControl ( "username" ) . setValue ( user . getUsername ( ) ) ;
You can’t perform that action at this time.
0 commit comments