diff --git a/src/components/ConversationCard/index.jsx b/src/components/ConversationCard/index.jsx index 0abb9ed3..1d954eab 100644 --- a/src/components/ConversationCard/index.jsx +++ b/src/components/ConversationCard/index.jsx @@ -334,24 +334,26 @@ function ConversationCard(props) { }} > {props.closeable ? ( - { port.disconnect() if (props.onClose) props.onClose() }} - /> + > + + ) : props.dockable ? ( - { if (props.onDock) props.onDock() }} - /> + > + + ) : ( )} @@ -412,10 +414,9 @@ function ConversationCard(props) { )} - { const position = { x: window.innerWidth / 2 - 300, y: window.innerHeight / 2 - 200 } const toolbarContainer = createElementAtPosition(position.x, position.y) @@ -431,7 +432,9 @@ function ConversationCard(props) { toolbarContainer, ) }} - /> + > + +