diff --git a/src/App.css b/src/App.css index 205c64f7d..8d916d390 100644 --- a/src/App.css +++ b/src/App.css @@ -60,12 +60,13 @@ body { .ant-progress-textno { color: #f5222d; } - +.CodeMirror pre.CodeMirror-line{ + font-size: 16px!important; +} /* md多空格 */ .markdown-body p { margin:10px 0px!important; font-size: 16px !important; - line-height: 2 !important; white-space: pre-wrap; } @@ -87,6 +88,10 @@ body { border-left: 1px solid rgb(221, 221, 221); /* 某些情况下,被cm盖住了 */ z-index: 99; + padding:8px 8px 50px; +} +.editormd-preview .markdown-body{ + padding:0px !important; } /* 图片点击放大的场景,隐藏图片链接 */ diff --git a/src/forge/Component/Releases.jsx b/src/forge/Component/Releases.jsx index 501c6b632..44b8d2c93 100644 --- a/src/forge/Component/Releases.jsx +++ b/src/forge/Component/Releases.jsx @@ -2,7 +2,7 @@ import React from 'react'; import { AlignCenter , AlignTop , FlexAJ } from '../Component/layout'; import { Link } from 'react-router-dom'; -function Releases({owner,projectsId,releaseVersions}){ +function Releases({owner,projectsId,releaseVersions , baseOperate}){ return(
@@ -13,7 +13,7 @@ function Releases({owner,projectsId,releaseVersions}){ { releaseVersions && releaseVersions.total_count > 0 ? 全部 : - 新建 + baseOperate && 新建 } { diff --git a/src/forge/DevOps/Dispose/PipelineName.jsx b/src/forge/DevOps/Dispose/PipelineName.jsx index 3cf7f96ab..4acaa2068 100644 --- a/src/forge/DevOps/Dispose/PipelineName.jsx +++ b/src/forge/DevOps/Dispose/PipelineName.jsx @@ -42,7 +42,7 @@ function PipelineName({visible,onCancel,onOk,value ,branchList}){
触发条件: - setBranchValue(e)}> { branchList && branchList.length>0 && branchList.map((item,key)=>{ return( @@ -51,7 +51,7 @@ function PipelineName({visible,onCancel,onOk,value ,branchList}){ }) } - {console.log(e);setEventValue(e)}}> { EVENT.map((item,key)=>{ return( diff --git a/src/forge/DevOps/ops.scss b/src/forge/DevOps/ops.scss index 024d0aa60..94838095d 100644 --- a/src/forge/DevOps/ops.scss +++ b/src/forge/DevOps/ops.scss @@ -391,6 +391,9 @@ } } } +.chooseCon.ant-select-dropdown{ + z-index: 100001; +} .choosenList{ display: flex; diff --git a/src/forge/Main/CoderDepot.jsx b/src/forge/Main/CoderDepot.jsx index 32121077b..93d999101 100644 --- a/src/forge/Main/CoderDepot.jsx +++ b/src/forge/Main/CoderDepot.jsx @@ -277,6 +277,7 @@ function CoderDepot(props){ const mdFlag = n && n.substring(n.length-3,n.length) === ".md"; const { current_user } = props; + const baseOperate = projectDetail && projectDetail.permission && projectDetail.permission !=="Reporter"; const fileOperate = type === "dir" && projectDetail && projectDetail.type !== 2 && ((projectDetail.permission && projectDetail.permission !=="Reporter") || (current_user && current_user.admin)); return( @@ -339,13 +340,16 @@ function CoderDepot(props){ -
- { - projectDetail.type !== 2 && - urlLink(`/projects/${owner}/${projectsId}/pulls/new`)} >+ 合并请求 - } - urlLink(`/projects/${owner}/${projectsId}/issues/new`)} >+ 任务 -
+ { + baseOperate && +
+ { + projectDetail.type !== 2 && + urlLink(`/projects/${owner}/${projectsId}/pulls/new`)} >+ 合并请求 + } + urlLink(`/projects/${owner}/${projectsId}/issues/new`)} >+ 任务 +
+ } { fileOperate && @@ -370,7 +374,9 @@ function CoderDepot(props){ { hideBtn && changeHide(hide)}> } {lastCommit && lastCommit.time_from_now} - { commitCount ? {commitCount}次提交:"" } + { commitCount ? + {commitCount}次提交 + :"" }
}