From d1128a0dfcc17a06b141c1f6483421103d74339e Mon Sep 17 00:00:00 2001 From: caishi Date: Fri, 3 Sep 2021 13:48:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=AA=E4=BA=BA=E8=B5=84=E6=96=99=E5=AE=8C?= =?UTF-8?q?=E5=96=84box=20style?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/forge/Component/PublicModal/Index.jsx | 1 + src/forge/Component/PublicModal/Index.scss | 3 +++ src/forge/Main/CoderDepot.jsx | 8 ++++++-- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/forge/Component/PublicModal/Index.jsx b/src/forge/Component/PublicModal/Index.jsx index 261988e8e..bbf10079d 100644 --- a/src/forge/Component/PublicModal/Index.jsx +++ b/src/forge/Component/PublicModal/Index.jsx @@ -11,6 +11,7 @@ function Modals({title,children,btn,onCancel,visible}) { width={"520px"} className="deleteBox" footer={btn} + centered={true} > {children} diff --git a/src/forge/Component/PublicModal/Index.scss b/src/forge/Component/PublicModal/Index.scss index a6daf0816..99b7ac85e 100644 --- a/src/forge/Component/PublicModal/Index.scss +++ b/src/forge/Component/PublicModal/Index.scss @@ -65,6 +65,9 @@ background-color: #466AFF; color: #fff; border-color: #466AFF; + &:hover,&:focus,&:active{ + background-color: rgba(70,106,255,0.85); + } } } } diff --git a/src/forge/Main/CoderDepot.jsx b/src/forge/Main/CoderDepot.jsx index 6087317e3..1b68bd62a 100644 --- a/src/forge/Main/CoderDepot.jsx +++ b/src/forge/Main/CoderDepot.jsx @@ -210,8 +210,12 @@ function CoderDepot(props){ let checkvalue = turnbar(b); return ( - urlLink(`/${owner}/${projectsId}/${checkvalue}/uploadfile${treeValue === undefined ? "" : `/${treeValue}`}`)}>上传文件 - urlLink(`/${owner}/${projectsId}/${checkvalue}/newfile${treeValue === undefined ? "" : `/${treeValue}`}`)}>新建文件 + + urlLink(`/${owner}/${projectsId}/${checkvalue}/uploadfile${treeValue === undefined ? "" : `/${treeValue}`}`)}>上传文件 + + + urlLink(`/${owner}/${projectsId}/${checkvalue}/newfile${treeValue === undefined ? "" : `/${treeValue}`}`)}>新建文件 + ) }