移除 HotArticle 组件的样式文件,优化 index.tsx 文件,提升代码整洁性和可读性。

This commit is contained in:
宇阳
2025-07-18 20:31:56 +08:00
parent a3a03db5f5
commit e11e452b43
3 changed files with 1 additions and 5 deletions

View File

@@ -96,7 +96,7 @@ export default function FishpondPage() {
>
{rssData.map((item, index) => {
return (
<div key={`${item.url}-${index}`} className="border border-[#eee] dark:border-black-b rounded-md transition-shadow hover:shadow-[0_2px_8px_rgba(186,186,186,0.15)] bg-white dark:bg-black-b p-5 pb-3 hover:-translate-y-0.5 mb-3 break-inside-avoid">
<div key={`${item.url}-${index}`} className="border border-[#eee] dark:border-black-b rounded-md transition-shadow hover:shadow-[0_2px_8px_rgba(186,186,186,0.15)] bg-white dark:bg-black-b p-5 pb-3 hover:-translate-y-0.5 transition-transform mb-3 break-inside-avoid">
<div className="flex justify-between items-center mb-3.75">
<div className="flex items-center gap-3">
<div className="w-10 h-10 rounded-full overflow-hidden border-2 border-[#eee] dark:border-black-b">

View File

@@ -1,3 +0,0 @@
.hotArticleComponent {
}

View File

@@ -4,7 +4,6 @@ import { getWebConfigDataAPI } from '@/api/config'
import { getArticleListAPI } from '@/api/article';
import { IoIosArrowForward } from "react-icons/io";
import fire from '@/assets/svg/other/fire.svg';
import "./index.scss";
import { Theme } from '@/types/app/config';
import { Article } from '@/types/app/article';