feat(community): 列表模式事件卡片高度自适应
This commit is contained in:
@@ -112,6 +112,7 @@ const VerticalModeLayout = ({
|
||||
timelineStyle={getTimelineBoxStyle()}
|
||||
borderColor={borderColor}
|
||||
indicatorSize={layoutMode === 'detail' ? 'default' : 'comfortable'}
|
||||
layout="vertical"
|
||||
/>
|
||||
))}
|
||||
</VStack>
|
||||
|
||||
@@ -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}
|
||||
/>
|
||||
|
||||
{/* 右侧事件卡片容器(带印章) */}
|
||||
|
||||
Reference in New Issue
Block a user