From f00b9830bfc6e1268b0a8a55965b4fbc645cb1a4 Mon Sep 17 00:00:00 2001 From: namezlx <1879558202@qq.com> Date: Fri, 18 Aug 2023 13:40:36 +0800 Subject: [PATCH 1/8] =?UTF-8?q?'=E6=A0=B7=E5=BC=8F=E4=BF=AE=E5=A4=8D'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/glcc/freeProject/component/index.scss | 8 ++++ .../freeProject/component/projectDetail.jsx | 39 ++++++++++++------- src/glcc/freeProject/projectList/index.jsx | 26 ++++++++++--- 3 files changed, 53 insertions(+), 20 deletions(-) create mode 100644 src/glcc/freeProject/component/index.scss diff --git a/src/glcc/freeProject/component/index.scss b/src/glcc/freeProject/component/index.scss new file mode 100644 index 00000000..186d8f12 --- /dev/null +++ b/src/glcc/freeProject/component/index.scss @@ -0,0 +1,8 @@ +.lastLineScroll { + max-height: 280px; + overflow-y: scroll; +} +.lastTwoScroll { + max-height: 520px; + overflow-y: scroll; +} \ No newline at end of file diff --git a/src/glcc/freeProject/component/projectDetail.jsx b/src/glcc/freeProject/component/projectDetail.jsx index 636e718d..f84a3c9d 100644 --- a/src/glcc/freeProject/component/projectDetail.jsx +++ b/src/glcc/freeProject/component/projectDetail.jsx @@ -3,8 +3,9 @@ import { Button, Tooltip } from 'antd'; import Nodata from '../../../forge/Nodata'; import { useEffect } from 'react'; import { getProjectById } from '../../api'; +import './index.scss'; -export default ({ detail, projectId }) => { +export default ({ detail, projectId, listLen }) => { const [info, setInfo] = useState(detail); useEffect(()=>{ @@ -27,21 +28,29 @@ export default ({ detail, projectId }) => {