贡献者没有id用email
This commit is contained in:
parent
de09db97bb
commit
bbfb4ea8bd
|
|
@ -175,9 +175,9 @@ function Contributors({owner,projectsId,currentLogin}){
|
|||
list && list.length>0 && list.map((item,key)=>{
|
||||
return(
|
||||
<Popover content={menu} visible={item.visible} overlayClassName="menuPanels" placement="top">
|
||||
<Link key={key} to={`/${item.login}`}>
|
||||
<a key={key} href={item.id ? `/${item.login}` : `mailto:${item.email}`}>
|
||||
<img src={getImageUrl(`/${item.image_url}`)} alt="" onMouseOver={()=>setVisibleFunc(true,item.login,key)}/>
|
||||
</Link>
|
||||
</a>
|
||||
</Popover>
|
||||
)
|
||||
})
|
||||
|
|
|
|||
|
|
@ -63,7 +63,7 @@ function Contribute(props){
|
|||
<AlignCenter className='mb15'>
|
||||
<img alt="" style={{borderRadius:"50%",marginRight:"10px"}} src={getImageUrl(`/${item.image_url}`)} width="50px" height="50px"/>
|
||||
<div>
|
||||
<Link to={`/${item.login}`} className="font-16">{item.name}</Link>
|
||||
<a href={item.id ? `/${item.login}` : `mailto:${item.email}`} className="font-16">{item.name}</a>
|
||||
<p className="font-12 color-grey-9">提交{item.contributions}次{item.contribution_perc ? ` I 贡献占比${item.contribution_perc}` : ''}</p>
|
||||
</div>
|
||||
</AlignCenter>
|
||||
|
|
|
|||
|
|
@ -57,15 +57,13 @@
|
|||
padding-bottom: 10px;
|
||||
word-break: break-all;
|
||||
}
|
||||
.attrPerson{
|
||||
padding-top: 12px;
|
||||
.claimattrPerson{
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
padding-bottom: 2px;
|
||||
a{
|
||||
margin: 0px 2px 0px 0px;
|
||||
height: 22px;
|
||||
line-height: 20px;
|
||||
margin: 12px 2px 0px 0px;
|
||||
height: 30px;
|
||||
img{
|
||||
border-radius: 50%;
|
||||
width: 30px;
|
||||
|
|
|
|||
|
|
@ -294,7 +294,7 @@ class claims extends React.Component {
|
|||
<span className="infoCount">{claimerData.length}</span>
|
||||
</div>
|
||||
<div
|
||||
className="attrPerson"
|
||||
className="claimattrPerson"
|
||||
onMouseLeave={() => this.setVisibleFunc(false)}
|
||||
>
|
||||
{claimerData.map((item, key) => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue