样式cont.

This commit is contained in:
黄心宇 2024-05-09 15:23:05 +08:00
parent 0ec2e090ad
commit 8f659d0358
1 changed files with 2 additions and 2 deletions

View File

@ -230,7 +230,7 @@ function CoderDepot(props){
let ele = document.getElementById("ptxt");
if(ele){
let h = ele.offsetHeight;
if( h > 36 ) setHideBtn(true);
if( h <= 36 ) setHideBtn(false);
}
}
},[projectDetail,lastCommit])
@ -551,7 +551,7 @@ function CoderDepot(props){
<pre id="ptxt"><Link to={`/${owner}/${projectsId}/commits/${truncateCommitId(lastCommit.sha)}`}><RenderHtml value={lastCommit.message}/></Link></pre>
</div>
}
{ hideBtn && __CLIENT__ && <span className="ellipsis" onClick={()=>changeHide(hide)}><i className="iconfont icon-shenglvehao"></i></span> }
{ hideBtn && __CLIENT__ && <div className="ellipsis" onClick={()=>changeHide(hide)}><i className="iconfont icon-shenglvehao"></i></div> }
<span className="ml20 color-grey-6 font-12 mt3">{lastCommit.time_from_now}</span>
{