forked from Gitlink/forgeplus-react
贡献者-悬浮内容增加跳转链接
This commit is contained in:
parent
383b3f5d74
commit
d22a741bf7
|
@ -171,7 +171,7 @@ li.ant-menu-item{
|
||||||
}
|
}
|
||||||
.menuinfos{
|
.menuinfos{
|
||||||
padding:15px 0px;
|
padding:15px 0px;
|
||||||
li{
|
&>a{
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
|
@ -60,18 +60,18 @@ function Contributors({contributors,owner,projectsId,id,showNotification}){
|
||||||
}
|
}
|
||||||
</FlexAJ>
|
</FlexAJ>
|
||||||
<AlignCenter className="menuinfos">
|
<AlignCenter className="menuinfos">
|
||||||
<li>
|
<a href={data.projects_url} target="_blank">
|
||||||
<span>{data.projects_count}</span>
|
<span>{data.projects_count}</span>
|
||||||
<span>项目数</span>
|
<span>项目数</span>
|
||||||
</li>
|
</a>
|
||||||
<li>
|
<a href={data.followers_url} target="_blank">
|
||||||
<span>{data.followers_count}</span>
|
<span>{data.followers_count}</span>
|
||||||
<span>粉丝数</span>
|
<span>粉丝数</span>
|
||||||
</li>
|
</a>
|
||||||
<li>
|
<a href={data.following_url} target="_blank">
|
||||||
<span>{data.following_count}</span>
|
<span>{data.following_count}</span>
|
||||||
<span>关注数</span>
|
<span>关注数</span>
|
||||||
</li>
|
</a>
|
||||||
</AlignCenter>
|
</AlignCenter>
|
||||||
{
|
{
|
||||||
data.organizations && data.organizations.length > 0 ?
|
data.organizations && data.organizations.length > 0 ?
|
||||||
|
@ -145,7 +145,7 @@ function Contributors({contributors,owner,projectsId,id,showNotification}){
|
||||||
total > 0 ?
|
total > 0 ?
|
||||||
list.map((item,key)=>{
|
list.map((item,key)=>{
|
||||||
return(
|
return(
|
||||||
<Popover content={menu} visible={item.visible} overlayClassName="menuPanels" placement="bottom">
|
<Popover content={menu} visible={item.visible} overlayClassName="menuPanels" placement="top">
|
||||||
<Link key={key} to={`/users/${item.login}`}>
|
<Link key={key} to={`/users/${item.login}`}>
|
||||||
<img src={getImageUrl(`/${item.image_url}`)} alt="" onMouseOver={()=>setVisibleFunc(true,item.login,key)}/>
|
<img src={getImageUrl(`/${item.image_url}`)} alt="" onMouseOver={()=>setVisibleFunc(true,item.login,key)}/>
|
||||||
</Link>
|
</Link>
|
||||||
|
|
Loading…
Reference in New Issue