From 6f046968b4583b0813d0667b8ed5500cb6f02ba8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B0=A2=E6=80=9D?= Date: Fri, 26 Dec 2025 17:56:38 +0800 Subject: [PATCH] bug fix --- .../components/openSourceCollaboration1.jsx | 19 +++++++++++++++++++ src/forge/Main/projecthome/v2/index.scss | 4 ++-- src/forge/projectHome/explore/index.jsx | 10 +++++----- src/forge/projectHome/explore/index.scss | 1 + src/forums/list/index.jsx | 6 +++--- 5 files changed, 30 insertions(+), 10 deletions(-) diff --git a/src/forge/Main/projecthome/v2/components/openSourceCollaboration1.jsx b/src/forge/Main/projecthome/v2/components/openSourceCollaboration1.jsx index eb21ce44b..5df9c2d31 100644 --- a/src/forge/Main/projecthome/v2/components/openSourceCollaboration1.jsx +++ b/src/forge/Main/projecthome/v2/components/openSourceCollaboration1.jsx @@ -25,6 +25,25 @@ const OpenSourceCollaboration = ({isVisible}) => { } ]; + useEffect(() => { + const interval = setInterval(() => { + setActive(prevActive => { + return prevActive === 1 ? 2 : 1; + }); + }, 6000); + + // 清理定时器 + return () => { + clearInterval(interval); + }; + }, []); + + useEffect(()=>{ + if(isVisible){ + setActive(1); + } + }, [isVisible]) + const handleFeatureClick = (feature) => { setSelectedFeature(selectedFeature === feature ? null : feature); }; diff --git a/src/forge/Main/projecthome/v2/index.scss b/src/forge/Main/projecthome/v2/index.scss index 1d1952a9d..8e0efc469 100644 --- a/src/forge/Main/projecthome/v2/index.scss +++ b/src/forge/Main/projecthome/v2/index.scss @@ -770,7 +770,7 @@ } .software-left-item { - cursor: pointer; + // cursor: pointer; max-height: max-content; &.active { @@ -957,7 +957,7 @@ height: 40px; left: 50%; transform: translateX(-50%); - bottom: 150px; + bottom: -20px; } .content-wrapper { diff --git a/src/forge/projectHome/explore/index.jsx b/src/forge/projectHome/explore/index.jsx index 8c29bcc1c..cb20b7ad4 100644 --- a/src/forge/projectHome/explore/index.jsx +++ b/src/forge/projectHome/explore/index.jsx @@ -136,7 +136,7 @@ function ProjectHomePage(props) {
开源软件仓库·护航菌事数智
汇聚全球顶尖开源力量,构建安全、协同、创新的软件生态,赋能菌事数字化转型与智能化升级
-
+
3 ? 'space-between' : 'space-around'}}> {count.map((item, index)=>{ const logoIndex = index%5 return @@ -188,7 +188,7 @@ function ProjectHomePage(props) {
}
{/* 推荐仓库 */} -
+ {bannerProjects && !!bannerProjects.length &&
{bannerProjects.map(i => { const url = i.author ? `/${i.author.login}/${i.identifier}${i.author.login === "gh_mirrors" ? "/about" : "/about"}` : `` @@ -210,8 +210,8 @@ function ProjectHomePage(props) {
})} -
-
+
} +
{topicId && topicDetail && topicDetail.intro && trigger.parentNode} content={ @@ -260,7 +260,7 @@ function ProjectHomePage(props) {
} */} {i.author && i.author.login !== "gh_mirrors" && 下载} - +
})}
: } diff --git a/src/forge/projectHome/explore/index.scss b/src/forge/projectHome/explore/index.scss index 4c3c4677f..586e221d3 100644 --- a/src/forge/projectHome/explore/index.scss +++ b/src/forge/projectHome/explore/index.scss @@ -217,6 +217,7 @@ .detail-but-black { + line-height: 32px; width: 88%; color: #ffffff; background-color: #2149d4; diff --git a/src/forums/list/index.jsx b/src/forums/list/index.jsx index c31985bc8..fe90b8cfe 100644 --- a/src/forums/list/index.jsx +++ b/src/forums/list/index.jsx @@ -129,14 +129,14 @@ function List(props) {
论坛交流·解锁头脑风暴
开源动态,社区前言新闻速递,开启开源新视野
- {forumsDoMain && } + {forumsDoMain && }
- {setActiveId(current)}}> + {forumsImgList && !!forumsImgList.length && {setActiveId(nextId)}}> {forumsImgList.map((item, index)=>{ return })} - + }
{forumsList.map((item, index) => (