diff --git a/src/js/components/Overview/ChartCard.tsx b/src/js/components/Overview/ChartCard.tsx index 619c7fd3..63fa4cca 100644 --- a/src/js/components/Overview/ChartCard.tsx +++ b/src/js/components/Overview/ChartCard.tsx @@ -10,10 +10,14 @@ import { ChartDataField } from '@/types/data'; const CARD_STYLE = { width: '100%', height: '415px', borderRadius: '11px', ...BOX_SHADOW }; const ROW_EMPTY_STYLE = { height: `${CHART_HEIGHT}px` }; -const TitleComponent: React.FC = ({ title, description }) => ( +const TitleComponent: React.FC = ({ title, description, smallEllipsis }) => ( {title} - + {description} @@ -22,6 +26,7 @@ const TitleComponent: React.FC = ({ title, description }) = interface TitleComponentProps { title: string; description: string; + smallEllipsis: boolean; } const ChartCard = memo(({ section, chart, onRemoveChart, width }: ChartCardProps) => { @@ -70,7 +75,7 @@ const ChartCard = memo(({ section, chart, onRemoveChart, width }: ChartCardProps return (
} + title={} style={CARD_STYLE} size="small" extra={{ed}}