diff --git a/src/views/Community/components/DynamicNewsCard/VerticalModeLayout.js b/src/views/Community/components/DynamicNewsCard/VerticalModeLayout.js index 1db9c7cf..c2437d02 100644 --- a/src/views/Community/components/DynamicNewsCard/VerticalModeLayout.js +++ b/src/views/Community/components/DynamicNewsCard/VerticalModeLayout.js @@ -112,6 +112,7 @@ const VerticalModeLayout = ({ timelineStyle={getTimelineBoxStyle()} borderColor={borderColor} indicatorSize={layoutMode === 'detail' ? 'default' : 'comfortable'} + layout="vertical" /> ))} diff --git a/src/views/Community/components/EventCard/HorizontalDynamicNewsEventCard.js b/src/views/Community/components/EventCard/HorizontalDynamicNewsEventCard.js index 8a0ca736..2e86349c 100644 --- a/src/views/Community/components/EventCard/HorizontalDynamicNewsEventCard.js +++ b/src/views/Community/components/EventCard/HorizontalDynamicNewsEventCard.js @@ -34,6 +34,7 @@ import StockChangeIndicators from '../../../../components/StockChangeIndicators' * @param {Object} props.timelineStyle - 时间轴样式配置 * @param {string} props.borderColor - 边框颜色 * @param {string} props.indicatorSize - 涨幅指标尺寸 ('default' | 'comfortable' | 'large') + * @param {string} props.layout - 布局模式 ('vertical' | 'four-row'),影响时间轴竖线高度 */ const HorizontalDynamicNewsEventCard = ({ event, @@ -47,6 +48,7 @@ const HorizontalDynamicNewsEventCard = ({ timelineStyle, borderColor, indicatorSize = 'comfortable', + layout = 'vertical', }) => { const importance = getImportanceConfig(event.importance); @@ -98,7 +100,7 @@ const HorizontalDynamicNewsEventCard = ({ createdAt={event.created_at} timelineStyle={timelineStyle} borderColor={borderColor} - minHeight="60px" + minHeight={layout === 'four-row' ? '60px' : 0} /> {/* 右侧事件卡片容器(带印章) */}