educoder项目无提交记录信息

This commit is contained in:
caishi 2021-12-09 11:03:52 +08:00
parent 5f89356679
commit 0a0705d42c
2 changed files with 15 additions and 7 deletions

View File

@ -463,12 +463,18 @@ function CoderDepot(props){
(dirInfo && dirInfo.length>0) || fileInfo ? (dirInfo && dirInfo.length>0) || fileInfo ?
<div className="listtable"> <div className="listtable">
{ {
lastCommit && ((lastCommit && lastCommit.message) || lastCommitAuthor) &&
<div className="listtablehead"> <div className="listtablehead">
<User url={getImageUrl(`/${lastCommitAuthor && lastCommitAuthor.image_url}`)} name={lastCommitAuthor && lastCommitAuthor.name} id={lastCommitAuthor && lastCommitAuthor.id} login={lastCommitAuthor && lastCommitAuthor.login}/> {
<div className={hideBtn && hide ? "ellipsistxt hidetxt" :"ellipsistxt"}> lastCommitAuthor &&
<pre id="ptxt"><Link to={`/${owner}/${projectsId}/commits/${truncateCommitId(lastCommit.sha)}`}><RenderHtml value={lastCommit.message}/></Link></pre> <User url={getImageUrl(`/${lastCommitAuthor.image_url}`)} name={lastCommitAuthor.name} id={lastCommitAuthor.id} login={lastCommitAuthor.login}/>
</div> }
{
lastCommit.message &&
<div className={hideBtn && hide ? "ellipsistxt hidetxt" :"ellipsistxt"}>
<pre id="ptxt"><Link to={`/${owner}/${projectsId}/commits/${truncateCommitId(lastCommit.sha)}`}><RenderHtml value={lastCommit.message}/></Link></pre>
</div>
}
{ hideBtn && <span className="ellipsis" onClick={()=>changeHide(hide)}><i className="iconfont icon-shenglvehao"></i></span> } { hideBtn && <span className="ellipsis" onClick={()=>changeHide(hide)}><i className="iconfont icon-shenglvehao"></i></span> }
<span className="ml20 color-grey-6 font-12 mt3">{lastCommit.time_from_now}</span> <span className="ml20 color-grey-6 font-12 mt3">{lastCommit.time_from_now}</span>

View File

@ -246,11 +246,14 @@
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: flex-start; align-items: flex-start;
border-bottom: 1px solid #d9d9d9;
padding:12px 20px 11px; padding:12px 20px 11px;
border-radius: 4px 4px 0px 0px; border-radius: 4px 4px 0px 0px;
border: 1px solid rgba(42, 97, 255, 0.23); border: 1px solid rgba(42, 97, 255, 0.23);
border-bottom: none;
background-color: #FAFCFF; background-color: #FAFCFF;
&+.listtablebody{
border-top-color: rgba(42, 97, 255, 0.23);
}
.ellipsistxt{ .ellipsistxt{
&:hover .markdown-body{ &:hover .markdown-body{
color: #466AFF; color: #466AFF;
@ -331,7 +334,6 @@
.listtablebody{ .listtablebody{
border-radius:0px 0px 4px 4px ; border-radius:0px 0px 4px 4px ;
border: 1px solid #D0D0D0; border: 1px solid #D0D0D0;
border-top: none;
li.listtablepath{ li.listtablepath{
a{color: #40a9ff;} a{color: #40a9ff;}
p{ p{