File tree Expand file tree Collapse file tree 1 file changed +12
-7
lines changed
services/static-webserver/client/source/class/osparc/conversation Expand file tree Collapse file tree 1 file changed +12
-7
lines changed Original file line number Diff line number Diff line change @@ -98,21 +98,26 @@ qx.Class.define("osparc.conversation.MessageUI", {
9898 } ) ;
9999 this . getChildControl ( "header-layout" ) . addAt ( control , isMyMessage ? 0 : 2 ) ;
100100 break ;
101- case "message-content" : {
102- // outer bubble
103- const bubble = new qx . ui . container . Composite ( new qx . ui . layout . VBox ( ) . set ( {
104- // maybe not needed
101+ case "message-bubble" :
102+ control = new qx . ui . container . Composite ( new qx . ui . layout . VBox ( ) . set ( {
105103 alignX : isMyMessage ? "right" : "left"
106104 } ) ) . set ( {
107105 decorator : "chat-bubble" ,
108106 padding : 8 ,
109107 allowGrowX : false ,
110108 } ) ;
109+ if ( isMyMessage ) {
110+ bubbleStyle = { "border-top-right-radius" : "0px" } ;
111+ } else {
112+ bubbleStyle = { "border-top-left-radius" : "0px" } ;
113+ }
114+ control . getContentElement ( ) . setStyles ( bubbleStyle ) ;
115+ this . getChildControl ( "main-layout" ) . addAt ( control , 1 ) ;
116+ break ;
117+ case "message-content" :
111118 control = new osparc . ui . markdown . Markdown2 ( ) ;
112- bubble . add ( control ) ;
113- this . getChildControl ( "main-layout" ) . addAt ( bubble , 1 ) ;
119+ this . getChildControl ( "message-bubble" ) . add ( control ) ;
114120 break ;
115- }
116121 case "menu-button" : {
117122 const buttonSize = 22 ;
118123 control = new qx . ui . form . MenuButton ( ) . set ( {
You can’t perform that action at this time.
0 commit comments