mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-17 16:02:14 +00:00
(improvement)(chat-sdk) optimize card title (#1653)
This commit is contained in:
@@ -22,6 +22,7 @@ const metricChartSelectOptions = [
|
||||
|
||||
type Props = {
|
||||
data: MsgDataType;
|
||||
question: string;
|
||||
chartIndex: number;
|
||||
triggerResize?: boolean;
|
||||
loading: boolean;
|
||||
@@ -34,6 +35,7 @@ type Props = {
|
||||
|
||||
const MetricTrend: React.FC<Props> = ({
|
||||
data,
|
||||
question,
|
||||
chartIndex,
|
||||
triggerResize,
|
||||
loading,
|
||||
@@ -65,16 +67,11 @@ const MetricTrend: React.FC<Props> = ({
|
||||
return (
|
||||
<div className={prefixCls}>
|
||||
<div className={`${prefixCls}-charts`}>
|
||||
{metricFields?.length === 1 && (
|
||||
<div className={`${prefixCls}-top-bar`}>
|
||||
<div
|
||||
className={`${prefixCls}-metric-fields ${prefixCls}-metric-field-single`}
|
||||
key={activeMetricField?.bizName}
|
||||
>
|
||||
{activeMetricField?.name}
|
||||
</div>
|
||||
<div className={`${prefixCls}-top-bar`}>
|
||||
<div className={`${prefixCls}-metric-fields ${prefixCls}-metric-field-single`}>
|
||||
{question}
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
<Spin spinning={loading}>
|
||||
<div className={`${prefixCls}-content`}>
|
||||
{!isMobile &&
|
||||
|
||||
Reference in New Issue
Block a user