diff --git a/app/components/news/list/NewsList.tsx b/app/components/news/list/NewsList.tsx index 955401f..9096912 100644 --- a/app/components/news/list/NewsList.tsx +++ b/app/components/news/list/NewsList.tsx @@ -14,8 +14,8 @@ const NewsItem: React.FC = ({ title = '', time = '', url = '' }) => { onClick={() => url && window.open(url)} // 点击时打开链接 className="flex items-center justify-between hover:text-blue-600 cursor-pointer transition duration-300 ease-in-out" > -

{title}

-

{time}

+

{title}

+

{time}

); @@ -28,7 +28,7 @@ const NewsList: React.FC = () => { const educationNews = mockNewsData.filter((news) => news.type === "教育"); return ( -
+
{/* 使用 Flexbox 将两个列表放在一行 */}
{/* 科技新闻 */} @@ -38,7 +38,7 @@ const NewsList: React.FC = () => {
科技新闻
-
@@ -63,7 +63,7 @@ const NewsList: React.FC = () => {
教育新闻
-