From 25293580caf1bd1174d397a8b53f15ca7760f8dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E5=BF=83=E5=AE=87?= Date: Fri, 9 Jun 2023 13:56:44 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=80=E8=8A=AF=E9=99=A2=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/forge/Information/Component/contributor.jsx | 2 +- src/forge/Information/Component/projects.jsx | 12 +++++++----- src/forge/Information/indexZone1.scss | 1 + 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/src/forge/Information/Component/contributor.jsx b/src/forge/Information/Component/contributor.jsx index 7cf893014..79f5ce294 100644 --- a/src/forge/Information/Component/contributor.jsx +++ b/src/forge/Information/Component/contributor.jsx @@ -4,7 +4,7 @@ import { Link } from 'react-router-dom'; const settings = { dots: true, - infinite: true, + infinite: false, speed: 500, slidesToShow: 3, slidesToScroll: 3, diff --git a/src/forge/Information/Component/projects.jsx b/src/forge/Information/Component/projects.jsx index 83f8195ab..65301e097 100644 --- a/src/forge/Information/Component/projects.jsx +++ b/src/forge/Information/Component/projects.jsx @@ -4,23 +4,25 @@ import projectRight from '../img/projectRight.png'; import projectLeft from '../img/projectLeft.png'; function SampleNextArrow(props) { - const { className, style } = props; + const { className, style, onClick } = props; return ( - + ); } function SamplePrevArrow(props) { - const { className, style } = props; + const { className, style, onClick } = props; return ( - + ); } + const settings = { className: "center", centerMode: true, + infinite: false, centerPadding: "100px", slidesToShow: 3, speed: 500, @@ -40,7 +42,7 @@ function Projects(props) { projectList.map((i,k)=>{ return(
-
window.open(i.projectURL)}> +
{i.projectProperties && i.projectProperties.authorImageUrl && }

{i.projectProperties && i.projectProperties.name}

{i.projectProperties && i.projectProperties.description ? i.projectProperties.description : "暂无~"}

diff --git a/src/forge/Information/indexZone1.scss b/src/forge/Information/indexZone1.scss index 55c290032..c37b4370c 100644 --- a/src/forge/Information/indexZone1.scss +++ b/src/forge/Information/indexZone1.scss @@ -211,6 +211,7 @@ width: 48px; height: 48px; left: 0; + z-index: 100; } .slick-track { display: flex;