diff --git a/src/views/Community/components/EventListSection.js b/src/views/Community/components/EventListSection.js index eb2339d3..9a17759e 100644 --- a/src/views/Community/components/EventListSection.js +++ b/src/views/Community/components/EventListSection.js @@ -3,6 +3,7 @@ import React from 'react'; import { + Box, Center, VStack, Spinner, @@ -27,38 +28,47 @@ const EventListSection = ({ onEventClick, onViewDetail }) => { + // ✅ 最小高度,避免加载后高度突变 + const minHeight = '600px'; + // Loading 状态 if (loading) { return ( -
- - - 正在加载最新事件... - -
+ +
+ + + 正在加载最新事件... + +
+
); } // Empty 状态 if (!events || events.length === 0) { return ( -
- - 暂无事件数据 - -
+ +
+ + 暂无事件数据 + +
+
); } // List 状态 return ( - + + + ); };