事件中心UI优化

This commit is contained in:
2025-11-07 11:08:06 +08:00
parent 7adb4ea8af
commit 25d3bf4d95
2 changed files with 11 additions and 11 deletions

View File

@@ -193,8 +193,11 @@ const DynamicNewsEventCard = ({
const periodLabel = getPeriodLabel(tradingPeriod);
return (
<VStack align="stretch" spacing={2} w="100%" pt={3}>
<VStack align="stretch" spacing={2} w="100%" pt={8} position="relative">
{/* 右上角:重要性印章(放在卡片外层) */}
<Box position="absolute" top={-4} right={4} zIndex={10}>
<ImportanceStamp importance={event.importance} />
</Box>
{/* 事件卡片 */}
<Card
@@ -222,10 +225,6 @@ const DynamicNewsEventCard = ({
onClick={() => onEventClick?.(event)}
>
<CardBody p={3}>
{/* 右上角:重要性印章 */}
<Box position="absolute" top={-8} right={8} zIndex={2}>
<ImportanceStamp importance={event.importance} />
</Box>
{/* 时间标签 - 在卡片上方,宽度自适应,左对齐 */}
<Box