@@ -52,11 +52,10 @@ qx.Class.define("osparc.support.ConversationPage", {
5252 let control ;
5353 switch ( id ) {
5454 case "conversation-header-layout" : {
55- const headerGrid = new qx . ui . layout . Grid ( 5 , 5 ) ;
56- headerGrid . setColumnAlign ( 0 , "center" , "middle" ) ;
57- headerGrid . setColumnFlex ( 1 , 1 ) ;
58- headerGrid . setColumnAlign ( 2 , "center" , "middle" ) ;
59- control = new qx . ui . container . Composite ( headerGrid ) . set ( {
55+ const headerLayout = new qx . ui . layout . HBox ( 5 ) . set ( {
56+ alignY : "middle" ,
57+ } )
58+ control = new qx . ui . container . Composite ( headerLayout ) . set ( {
6059 padding : 5 ,
6160 } ) ;
6261 this . _add ( control ) ;
@@ -69,10 +68,12 @@ qx.Class.define("osparc.support.ConversationPage", {
6968 backgroundColor : "transparent"
7069 } ) ;
7170 control . addListener ( "execute" , ( ) => this . fireEvent ( "showConversations" ) ) ;
72- this . getChildControl ( "conversation-header-layout" ) . add ( control , {
73- row : 0 ,
74- column : 0 ,
75- rowSpan : 2 ,
71+ this . getChildControl ( "conversation-header-layout" ) . addAt ( control , 0 ) ;
72+ break ;
73+ case "conversation-header-center-layout" :
74+ control = new qx . ui . container . Composite ( new qx . ui . layout . VBox ( 5 ) ) ;
75+ this . getChildControl ( "conversation-header-layout" ) . addAt ( control , 1 , {
76+ flex : 1 ,
7677 } ) ;
7778 break ;
7879 case "conversation-title" :
@@ -81,24 +82,7 @@ qx.Class.define("osparc.support.ConversationPage", {
8182 alignY : "middle" ,
8283 allowGrowX : true ,
8384 } ) ;
84- this . getChildControl ( "conversation-header-layout" ) . add ( control , {
85- row : 0 ,
86- column : 1 ,
87- } ) ;
88- break ;
89- case "conversation-options" :
90- control = new qx . ui . form . MenuButton ( ) . set ( {
91- maxWidth : 22 ,
92- maxHeight : 22 ,
93- alignX : "center" ,
94- alignY : "middle" ,
95- icon : "@FontAwesome5Solid/ellipsis-v/14" ,
96- } ) ;
97- this . getChildControl ( "conversation-header-layout" ) . add ( control , {
98- row : 0 ,
99- column : 2 ,
100- rowSpan : 2 ,
101- } ) ;
85+ this . getChildControl ( "conversation-header-center-layout" ) . addAt ( control , 0 ) ;
10286 break ;
10387 case "conversation-extra-content" :
10488 control = new qx . ui . basic . Label ( ) . set ( {
@@ -108,10 +92,17 @@ qx.Class.define("osparc.support.ConversationPage", {
10892 allowGrowX : true ,
10993 selectable : true ,
11094 } ) ;
111- this . getChildControl ( "conversation-header-layout" ) . add ( control , {
112- row : 1 ,
113- column : 1 ,
95+ this . getChildControl ( "conversation-header-center-layout" ) . addAt ( control , 1 ) ;
96+ break ;
97+ case "conversation-options" :
98+ control = new qx . ui . form . MenuButton ( ) . set ( {
99+ maxWidth : 22 ,
100+ maxHeight : 22 ,
101+ alignX : "center" ,
102+ alignY : "middle" ,
103+ icon : "@FontAwesome5Solid/ellipsis-v/14" ,
114104 } ) ;
105+ this . getChildControl ( "conversation-header-layout" ) . addAt ( control , 2 ) ;
115106 break ;
116107 case "conversation" :
117108 control = new osparc . support . Conversation ( ) ;
@@ -137,11 +128,10 @@ qx.Class.define("osparc.support.ConversationPage", {
137128 extraContextLabel . setVisibility ( amISupporter ? "visible" : "excluded" ) ;
138129 const extraContext = conversation . getExtraContext ( ) ;
139130 if ( amISupporter && extraContext && Object . keys ( extraContext ) . length ) {
140- let extraContextText = "" ;
141- extraContextText += `ID: ${ conversationId } <br>` ;
131+ let extraContextText = `Support ID: ${ conversationId } ` ;
142132 const contextProjectId = conversation . getContextProjectId ( ) ;
143133 if ( contextProjectId ) {
144- extraContextText += `Project ID: ${ contextProjectId } <br> ` ;
134+ extraContextText += `<br> Project ID: ${ contextProjectId } ` ;
145135 }
146136 extraContextLabel . setValue ( extraContextText ) ;
147137 }
0 commit comments