事件中心UI优化
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user