仓库readme展示优化、组织项目列表翻页组件bug、关于我们-合作伙伴样式优化以及参数调整

This commit is contained in:
谢思 2022-11-28 16:01:43 +08:00
parent 4b381b8b56
commit 6547657e45
3 changed files with 7 additions and 3 deletions

View File

@ -35,7 +35,7 @@ function AboutUs(){
//
window.addEventListener('scroll', scrollListener);
//topics.json
axios.get(`/topics.json`, { params: { topic_type: "cooperator", limit: 20, group_size: 5}}).then(response=>{
axios.get(`/topics.json`, { params: { topic_type: "cooperator", limit: 30, group_size: 5}}).then(response=>{
response && setUnits(response.data.topics);
});
return ()=>window.removeEventListener('scroll', scrollListener);
@ -265,7 +265,7 @@ function AboutUs(){
<tr>
{group.map(item =>{
return(
<td><a href={item.url} target="_blank"><img src={getImageUrl(item.image)}></img></a></td>
<td><a href={item.url} target="_blank"><img src={getImageUrl(item.image)} className='unitImg' alt='合作单位'></img></a></td>
)
})}
</tr>

View File

@ -329,6 +329,10 @@
border: 2px solid #FFFFFF;
&:hover{ border: 1px solid #466AFF;}
}
.unitImg{
max-width: 90%;
max-height: 100%;
}
}
}
.au_cont{

View File

@ -106,7 +106,7 @@ function List(props){
{
totalCount > limit &&
<div className="mb20 mt20" style={{textAlign:"center"}}>
<Pagination simple current={page} total={totalCount} onChange={(page)=>setPage(page)}/>
<Pagination simple current={page} total={totalCount} pageSize={limit} onChange={(page)=>setPage(page)}/>
</div>
}
</div>