(improvement)(chat-sdk) optimize tip and card title (#1652)

This commit is contained in:
williamhliu
2024-09-11 19:17:27 +08:00
committed by GitHub
parent fb96ce5843
commit 91982a99eb
5 changed files with 12 additions and 8 deletions

View File

@@ -15,6 +15,7 @@ import { isMobile } from '../../utils/utils';
type Props = {
queryId?: number;
question: string;
data: MsgDataType;
chartIndex: number;
triggerResize?: boolean;
@@ -25,6 +26,7 @@ type Props = {
const ChatMsg: React.FC<Props> = ({
queryId,
question,
data,
chartIndex,
triggerResize,
@@ -176,6 +178,7 @@ const ChatMsg: React.FC<Props> = ({
return (
<MetricCard
data={{ ...data, queryColumns: columns, queryResults: dataSource }}
question={question}
loading={loading}
/>
);
@@ -342,7 +345,7 @@ const ChatMsg: React.FC<Props> = ({
return (
<div className={chartMsgClass} style={style}>
{dataSource?.length === 0 ? (
<div></div>
<div></div>
) : (
<div>
{getMsgContent()}