diff --git a/src/components/Citation/CitedContent.js b/src/components/Citation/CitedContent.js index 0f1426ef..2e36591a 100644 --- a/src/components/Citation/CitedContent.js +++ b/src/components/Citation/CitedContent.js @@ -82,29 +82,9 @@ const CitedContent = ({ ...containerStyle }} > - {/* AI 标识 - 固定在右上角 */} - {showAIBadge && ( - } - color="purple" - style={{ - position: 'absolute', - top: 12, - right: 12, - margin: 0, - zIndex: 10, - fontSize: 12, - padding: '2px 8px' - }} - className="ai-badge-responsive" - > - AI合成 - - )} - {/* 标题栏 */} {title && ( -
+
{title} @@ -112,10 +92,24 @@ const CitedContent = ({ )} {/* 带引用的文本内容 */} -
+
+ {/* AI 标识 - 行内显示在文字前面 */} + {showAIBadge && ( + } + color="purple" + style={{ + fontSize: 12, + padding: '2px 8px', + marginRight: 8, + verticalAlign: 'middle', + display: 'inline-flex', + }} + className="ai-badge-responsive" + > + AI合成 + + )} {/* 前缀标签(如果有) */} {prefix && ( - + {/* 顶部区域:左侧(标题+时间) + 右侧(按钮) */} {/* 左侧:标题 + 时间信息(允许折行) */} - + {/* 标题 */} { @@ -290,27 +292,28 @@ const HistoricalEvents = ({ {/* 时间 + Badges(允许折行) */} - + {formatDate(getEventDate(event))} - + ({getRelativeTime(getEventDate(event))}) {event.importance && ( - + 重要性: {event.importance} )} {event.avg_change_pct !== undefined && event.avg_change_pct !== null && ( 0 ? 'red' : event.avg_change_pct < 0 ? 'green' : 'gray'} - size="sm" + fontSize="xs" + px={2} > 涨幅: {event.avg_change_pct > 0 ? '+' : ''}{event.avg_change_pct.toFixed(2)}% )} {event.similarity !== undefined && event.similarity !== null && ( - + 相关度: {event.similarity} )} @@ -344,10 +347,9 @@ const HistoricalEvents = ({ data={content} title="" showAIBadge={true} - textColor={PROFESSIONAL_COLORS.text.primary} + textColor="#E2E8F0" containerStyle={{ - backgroundColor: useColorModeValue('#f7fafc', 'rgba(45, 55, 72, 0.6)'), - borderRadius: '8px', + backgroundColor: 'transparent', padding: '0', }} /> diff --git a/src/views/EventDetail/components/TransmissionChainAnalysis.js b/src/views/EventDetail/components/TransmissionChainAnalysis.js index ab6896a8..87c4b4a9 100644 --- a/src/views/EventDetail/components/TransmissionChainAnalysis.js +++ b/src/views/EventDetail/components/TransmissionChainAnalysis.js @@ -826,8 +826,8 @@ const TransmissionChainAnalysis = ({ eventId }) => { - - + + {selectedNode ? '节点详情' : '传导链分析'} {selectedNode && ( { )} - + {selectedNode ? ( @@ -1084,11 +1087,15 @@ const TransmissionChainAnalysis = ({ eventId }) => { prefix="机制:" prefixStyle={{ fontSize: 12, color: PROFESSIONAL_COLORS.text.secondary, fontWeight: 'bold' }} textColor={PROFESSIONAL_COLORS.text.primary} - containerStyle={{ marginTop: 8 }} + containerStyle={{ + marginTop: 8, + backgroundColor: 'transparent', + padding: 0, + }} showAIBadge={false} /> ) : parent.transmission_mechanism ? ( - + 机制: {parent.transmission_mechanism}(AI合成) ) : null} @@ -1105,23 +1112,42 @@ const TransmissionChainAnalysis = ({ eventId }) => { {/* 影响输出 */} {(() => { const targetsFromAPI = nodeDetail && nodeDetail.children && nodeDetail.children.length > 0; - + if (targetsFromAPI) { return ( - - 影响输出 ({nodeDetail.children.length}) + + 影响输出 ({nodeDetail.children.length})(AI合成) {nodeDetail.children.map((child, index) => ( - + {child.direction && ( @@ -1132,7 +1158,7 @@ const TransmissionChainAnalysis = ({ eventId }) => { )} - {child.name} + {child.name} {child.transmission_mechanism?.data ? ( { prefix="机制:" prefixStyle={{ fontSize: 12, color: PROFESSIONAL_COLORS.text.secondary, fontWeight: 'bold' }} textColor={PROFESSIONAL_COLORS.text.primary} - containerStyle={{ marginTop: 8 }} + containerStyle={{ + marginTop: 8, + backgroundColor: 'transparent', + padding: 0, + }} showAIBadge={false} /> ) : child.transmission_mechanism ? ( - + 机制: {child.transmission_mechanism}(AI合成) ) : null} @@ -1169,7 +1199,14 @@ const TransmissionChainAnalysis = ({ eventId }) => { - +