From ef4fca967152f6669fef9f87bc391db2027e4470 Mon Sep 17 00:00:00 2001 From: williamhliu <137068196+williamhliu@users.noreply.github.com> Date: Mon, 3 Jul 2023 19:28:55 +0800 Subject: [PATCH] [feature](webapp) modify multy-turn conversation and optimize css styles (#11) williamhliu --- .../packages/chat-sdk/src/components/ChatMsg/Bar/style.less | 4 ++-- .../chat-sdk/src/components/ChatMsg/MetricTrend/style.less | 6 +++--- .../supersonic-fe/src/pages/Chat/MessageContainer.tsx | 1 - 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/webapp/packages/chat-sdk/src/components/ChatMsg/Bar/style.less b/webapp/packages/chat-sdk/src/components/ChatMsg/Bar/style.less index 1e564ab47..847651665 100644 --- a/webapp/packages/chat-sdk/src/components/ChatMsg/Bar/style.less +++ b/webapp/packages/chat-sdk/src/components/ChatMsg/Bar/style.less @@ -3,6 +3,6 @@ @bar-cls: ~'@{supersonic-chat-prefix}-bar'; .@{bar-cls} { - height: 300px; - margin-top: 20px; + height: 270px; + margin-top: 16px; } \ No newline at end of file diff --git a/webapp/packages/chat-sdk/src/components/ChatMsg/MetricTrend/style.less b/webapp/packages/chat-sdk/src/components/ChatMsg/MetricTrend/style.less index 927f31316..1d74a514a 100644 --- a/webapp/packages/chat-sdk/src/components/ChatMsg/MetricTrend/style.less +++ b/webapp/packages/chat-sdk/src/components/ChatMsg/MetricTrend/style.less @@ -7,7 +7,7 @@ flex-direction: column; align-items: center; justify-content: center; - margin-top: 20px; + margin-top: 16px; width: 100%; row-gap: 4px; @@ -35,14 +35,14 @@ } &-flow-trend-chart { - height: 300px; + height: 270px; } &-charts { display: flex; flex-direction: column; width: 100%; - row-gap: 20px; + row-gap: 16px; } &-metric-fields { diff --git a/webapp/packages/supersonic-fe/src/pages/Chat/MessageContainer.tsx b/webapp/packages/supersonic-fe/src/pages/Chat/MessageContainer.tsx index 2118e1b6c..a9dee6df9 100644 --- a/webapp/packages/supersonic-fe/src/pages/Chat/MessageContainer.tsx +++ b/webapp/packages/supersonic-fe/src/pages/Chat/MessageContainer.tsx @@ -68,7 +68,6 @@ const MessageContainer: React.FC = ({ if ( (msg.type === MessageTypeEnum.QUESTION || msg.type === MessageTypeEnum.INSTRUCTION) && !!currentMsgDomainId && - !!currentMsgEntityId && msgDomainId === currentMsgDomainId && msgEntityId === currentMsgEntityId && msg.msg