diff --git a/src/views/Community/components/DynamicNewsCard/EventScrollList.js b/src/views/Community/components/DynamicNewsCard/EventScrollList.js index 26f9cb56..a4000365 100644 --- a/src/views/Community/components/DynamicNewsCard/EventScrollList.js +++ b/src/views/Community/components/DynamicNewsCard/EventScrollList.js @@ -5,19 +5,13 @@ import React, { useRef } from 'react'; import { Box, Flex, - Grid, - GridItem, - Center, - VStack, - Text, useColorModeValue } from '@chakra-ui/react'; -import HorizontalDynamicNewsEventCard from '../EventCard/HorizontalDynamicNewsEventCard'; -import DynamicNewsDetailPanel from '../DynamicNewsDetail'; import PaginationControl from './PaginationControl'; import VirtualizedFourRowGrid from './VirtualizedFourRowGrid'; import PageNavigationButton from './PageNavigationButton'; import ModeToggleButtons from './ModeToggleButtons'; +import VerticalModeLayout from './VerticalModeLayout'; /** * 事件列表组件 - 支持纵向和平铺两种展示模式 @@ -166,68 +160,25 @@ const EventScrollList = ({ /> )} - {/* 模式4: 纵向分栏模式 - 横向布局(时间在左,卡片在右) */} + {/* 纵向分栏模式 */} {mode === 'vertical' && ( - - {/* 左侧:事件列表 (33.3%) - 使用虚拟滚动 + 双向无限滚动 */} - - - - - {/* 右侧:事件详情 (66.7%) */} - - - {selectedEvent ? ( - - ) : ( -
- - - 请选择左侧事件查看详情 - - -
- )} -
-
-
+ )}