From ca52d3bd877eba90f2547483a9787f881ccfad64 Mon Sep 17 00:00:00 2001 From: zdl <3489966805@qq.com> Date: Wed, 5 Nov 2025 16:40:35 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E7=BA=B5=E5=90=91=E5=88=97=E8=A1=A8?= =?UTF-8?q?=EF=BC=88HorizontalDynamicNewsEventCard.js:105-133=EF=BC=89=20-?= =?UTF-8?q?=20=E6=B7=BB=E5=8A=A0=20Tooltip=20=E6=8F=90=E7=A4=BA=20?= =?UTF-8?q?=E5=B9=B3=E9=93=BA=E5=88=97=E8=A1=A8=EF=BC=88DynamicNewsEventCa?= =?UTF-8?q?rd.js:232=EF=BC=89=20-=20=E4=BF=AE=E6=94=B9=E8=A1=8C=E6=95=B0?= =?UTF-8?q?=E9=99=90=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../EventCard/DynamicNewsEventCard.js | 2 +- .../HorizontalDynamicNewsEventCard.js | 44 ++++++++++++------- 2 files changed, 29 insertions(+), 17 deletions(-) diff --git a/src/views/Community/components/EventCard/DynamicNewsEventCard.js b/src/views/Community/components/EventCard/DynamicNewsEventCard.js index 07ac4a17..32e360c5 100644 --- a/src/views/Community/components/EventCard/DynamicNewsEventCard.js +++ b/src/views/Community/components/EventCard/DynamicNewsEventCard.js @@ -229,7 +229,7 @@ const DynamicNewsEventCard = ({ fontWeight="semibold" color={linkColor} lineHeight="1.4" - noOfLines={2} + noOfLines={3} _hover={{ textDecoration: 'underline' }} > {event.title} diff --git a/src/views/Community/components/EventCard/HorizontalDynamicNewsEventCard.js b/src/views/Community/components/EventCard/HorizontalDynamicNewsEventCard.js index c82790b9..bffa9a62 100644 --- a/src/views/Community/components/EventCard/HorizontalDynamicNewsEventCard.js +++ b/src/views/Community/components/EventCard/HorizontalDynamicNewsEventCard.js @@ -101,24 +101,36 @@ const HorizontalDynamicNewsEventCard = ({ - {/* 标题 - 最多两行,添加左右边距避免与横向徽章和关注按钮重叠 */} - onTitleClick?.(e, event)} - mt={1} - paddingRight="10px" + {/* 标题 - 最多两行,hover 显示完整内容 */} + - onTitleClick?.(e, event)} + mt={1} + paddingRight="10px" > - {event.title} - - + + {event.title} + + + {/* 第二行:涨跌幅数据 */}