diff --git a/src/forge/Main/CoderDepot.jsx b/src/forge/Main/CoderDepot.jsx index 3b8a16ae9..a57a62d3f 100644 --- a/src/forge/Main/CoderDepot.jsx +++ b/src/forge/Main/CoderDepot.jsx @@ -1,6 +1,6 @@ import React , { useEffect , useState } from 'react'; import { WhiteBack , Box , LongWidth , ShortWidth , Gap , AlignCenter , FlexAJ } from '../Component/layout'; -import { Dropdown , Menu , Divider , Spin, Button } from 'antd'; +import { Dropdown , Menu , Divider , Spin, Button , Typography } from 'antd'; import { getImageUrl } from "educoder"; import { Link } from 'react-router-dom'; import CloneAddress from '../Branch/CloneAddress'; @@ -23,7 +23,7 @@ import Invite from './sub/Invite'; /** * projectDetail.type:0是托管项目,1是镜像项目,2是同步镜像项目(为2时不支持在线创建、在线上传、在线修改、在线删除、创建合并请求等功能) */ - + const { Paragraph } = Typography; function turnbar(str){ if(str && str.length>0 && str.indexOf("/")>-1){ return str.replaceAll('/','%2F'); @@ -390,7 +390,7 @@ function CoderDepot(props){
{lastCommit && lastCommit.message}
{ hideBtn && changeHide(hide)}> } - + {lastCommit && lastCommit.time_from_now} { commitCount ? @@ -453,30 +453,32 @@ function CoderDepot(props){
简介 - {projectDetail.permission && (projectDetail.permission==="Admin" || projectDetail.permission==="Owner") && setOpenModal(true)} className="iconfont icon-anquanshezhi color-grey-9 font-15">} + {projectDetail.permission && (projectDetail.permission==="Admin" || projectDetail.permission==="Owner") && + setOpenModal(true)} className="iconfont icon-a-shezhi font-15"> + } {desc &&

{desc}

} { website && -

- - {website} -

+
+ + {website} +
} -

- - README.md -

-

- +

+ + README.md +
+
+ {projectDetail && projectDetail.size} -

+
{ projectDetail && projectDetail.license_name && -

+

- {projectDetail.license_name} -

+ {projectDetail.license_name} +
}
{ diff --git a/src/forge/Main/CoderDepotReadme.jsx b/src/forge/Main/CoderDepotReadme.jsx index 526e28d59..59a687ddc 100644 --- a/src/forge/Main/CoderDepotReadme.jsx +++ b/src/forge/Main/CoderDepotReadme.jsx @@ -45,7 +45,7 @@ function CoderDepotReadme({ operate , history , readme , ChangeFile }){ - + 目录 diff --git a/src/forge/Main/Index.scss b/src/forge/Main/Index.scss index c97185e75..61f67c545 100644 --- a/src/forge/Main/Index.scss +++ b/src/forge/Main/Index.scss @@ -204,6 +204,7 @@ padding:13px 20px; border-radius: 4px 4px 0px 0px; border: 1px solid rgba(42, 97, 255, 0.23); + background-color: #FAFCFF; .ellipsistxt{ margin-top: 6px; #ptxt{ @@ -226,12 +227,12 @@ overflow: hidden; position: relative; padding-right:8px; - &::after{ - position: absolute; - right: 0px; - bottom: 0px; - content:"..."; - } + // &::after{ + // position: absolute; + // right: 0px; + // bottom: 0px; + // content:"..."; + // } } } .ellipsis{ @@ -335,17 +336,22 @@ } .catelogue{ - border:1px solid rgb(211, 211, 211); + cursor: pointer; + background: #FAFBFC; + border-radius: 4px; + border: 1px solid #D0D0D0; font-size: 15px; font-weight: normal; - border-radius: 5px; - margin-right: 10px; + margin-right: 12px; padding:0px 10px; height: 30px; line-height: 30px; color: #666!important; display: flex; align-items: center; + &:hover{ + background-color: #F3F4F6; + } span{ margin-top: 1px; } @@ -358,4 +364,18 @@ &:hover{ color: #05101a; } +} +.pinfos{ + i,a{color: #666;} + &:hover i,&:hover a{ + color: #2A61FF; + } +} +.graph{ + flex:1; + margin:0px 12px; + .ant-typography{ + white-space: pre-wrap; + margin-bottom: 0px; + } } \ No newline at end of file