代码库二级页面标签页优化

This commit is contained in:
hucong 2021-10-12 10:32:09 +08:00
parent e04496f662
commit 1c5b5a66d8
3 changed files with 15 additions and 3 deletions

View File

@ -1309,6 +1309,7 @@ span {
margin: 0;
padding: 0;
margin-bottom: 0px!important;
font-weight: 500;
}
table,
@ -1362,7 +1363,8 @@ table {
a:link,
a:visited {
text-decoration: none;
color: #05101a;
color: #333333;
font-weight: 500;
}
ol,

View File

@ -35,7 +35,11 @@ function Tags(props) {
key:1,
ellipsis:true,
render:(txt,item)=>{
return <Link className="hover" to={`/${owner}/${projectsId}/tree/${item.name}`} >{item.name}</Link>
return(
<div className="tagBranch">
<Link className="hover" to={`/${owner}/${projectsId}/tree/${item.name}`}>{item.name}</Link>
</div>
)
}
},
{
@ -46,7 +50,7 @@ function Tags(props) {
render:(txt,item)=>{
return (
<span className="color-grey-3">
<Link className="mr3" style={{fontWeight:"500"}} to={`/${item.commit && item.commit.login}`} >{item.commit && item.commit.name}</Link>
<Link className="mr3" style={{fontWeight:"500"}} to={`/${item.tagger && item.tagger.login}`} >{item.tagger && item.tagger.name}</Link>
<span>创建于{txt}</span>
</span>
)

View File

@ -39,4 +39,10 @@
display: flex;
align-items: center;
justify-content: center;
}
.tagBranch{
width: 200px;
margin-left: -67px;
text-overflow: ellipsis;
overflow: hidden;
}