更新Company页面的UI为FUI风格

This commit is contained in:
2025-12-22 17:24:19 +08:00
parent 0b95953db9
commit 5843029b9c

View File

@@ -84,32 +84,33 @@ const TimelineEventItem = React.memo(({ event, isSelected, onEventClick, isHot }
w="100%" w="100%"
cursor="pointer" cursor="pointer"
onClick={() => onEventClick?.(event)} onClick={() => onEventClick?.(event)}
_hover={{ bg: "rgba(255, 255, 255, 0.05)" }} _hover={{ bg: "rgba(255, 255, 255, 0.06)" }}
borderRadius="md" borderRadius="md"
transition="all 0.15s" transition="all 0.15s"
bg={isSelected ? "rgba(66, 153, 225, 0.15)" : "transparent"} bg={isSelected ? "rgba(66, 153, 225, 0.15)" : "transparent"}
py={1} py={2}
px={1}
> >
{/* 左侧时间 */} {/* 左侧时间 */}
<Text <Text
fontSize="xs" fontSize="sm"
color={COLORS.secondaryTextColor} color={COLORS.secondaryTextColor}
fontWeight="500" fontWeight="500"
w="52px" w="58px"
flexShrink={0} flexShrink={0}
textAlign="right" textAlign="right"
pr={2} pr={3}
> >
{formatEventTime(event.created_at || event.event_time)} {formatEventTime(event.created_at || event.event_time)}
</Text> </Text>
{/* 右侧内容 */} {/* 右侧内容 */}
<Box flex={1} minW={0} pr={1}> <Box flex={1} minW={0} pr={2}>
<Text <Text
fontSize="xs" fontSize="sm"
color={COLORS.textColor} color={COLORS.textColor}
noOfLines={2} noOfLines={2}
lineHeight="1.5" lineHeight="1.6"
> >
{event.title} {event.title}
</Text> </Text>
@@ -118,11 +119,11 @@ const TimelineEventItem = React.memo(({ event, isSelected, onEventClick, isHot }
{/* 涨跌幅 */} {/* 涨跌幅 */}
{hasChange && ( {hasChange && (
<Text <Text
fontSize="xs" fontSize="sm"
fontWeight="bold" fontWeight="bold"
color={isPositive ? "#fc8181" : "#68d391"} color={isPositive ? "#fc8181" : "#68d391"}
flexShrink={0} flexShrink={0}
minW="45px" minW="50px"
textAlign="right" textAlign="right"
> >
{isPositive ? "+" : ""} {isPositive ? "+" : ""}
@@ -208,8 +209,8 @@ const MainlineCard = React.memo(
borderColor={COLORS.cardBorderColor} borderColor={COLORS.cardBorderColor}
borderTopWidth="3px" borderTopWidth="3px"
borderTopColor={`${colorScheme}.500`} borderTopColor={`${colorScheme}.500`}
minW={isExpanded ? "280px" : "200px"} minW={isExpanded ? "320px" : "280px"}
maxW={isExpanded ? "320px" : "240px"} maxW={isExpanded ? "380px" : "320px"}
h="100%" h="100%"
display="flex" display="flex"
flexDirection="column" flexDirection="column"
@@ -291,7 +292,7 @@ const MainlineCard = React.memo(
{hotEvent && ( {hotEvent && (
<Box <Box
px={3} px={3}
py={2} py={2.5}
bg="rgba(245, 101, 101, 0.08)" bg="rgba(245, 101, 101, 0.08)"
borderBottomWidth="1px" borderBottomWidth="1px"
borderBottomColor={COLORS.cardBorderColor} borderBottomColor={COLORS.cardBorderColor}
@@ -308,32 +309,33 @@ const MainlineCard = React.memo(
<Badge <Badge
bg="linear-gradient(135deg, #f56565 0%, #ed8936 100%)" bg="linear-gradient(135deg, #f56565 0%, #ed8936 100%)"
color="white" color="white"
fontSize="10px" fontSize="xs"
px={1.5} px={2}
py={0.5} py={0.5}
borderRadius="sm" borderRadius="sm"
flexShrink={0} flexShrink={0}
display="flex" display="flex"
alignItems="center" alignItems="center"
gap="2px" gap="3px"
fontWeight="bold"
> >
<FireOutlined style={{ fontSize: 10 }} /> <FireOutlined style={{ fontSize: 11 }} />
HOT HOT
</Badge> </Badge>
{/* HOT 事件标题 */} {/* HOT 事件标题 */}
<Text <Text
fontSize="xs" fontSize="sm"
color={COLORS.textColor} color={COLORS.textColor}
noOfLines={2} noOfLines={2}
flex={1} flex={1}
lineHeight="1.4" lineHeight="1.5"
> >
{hotEvent.title} {hotEvent.title}
</Text> </Text>
{/* HOT 事件涨幅 */} {/* HOT 事件涨幅 */}
{(hotEvent.related_max_chg ?? hotEvent.related_avg_chg) != null && ( {(hotEvent.related_max_chg ?? hotEvent.related_avg_chg) != null && (
<Text <Text
fontSize="xs" fontSize="sm"
fontWeight="bold" fontWeight="bold"
color="#fc8181" color="#fc8181"
flexShrink={0} flexShrink={0}