开源项目首页改版issue

This commit is contained in:
谢思 2022-10-28 13:58:54 +08:00
parent 0803a78ae4
commit 14e1e0d743
3 changed files with 4 additions and 6 deletions

2
package-lock.json generated
View File

@ -4126,7 +4126,7 @@
}, },
"cross-port-killer": { "cross-port-killer": {
"version": "1.4.0", "version": "1.4.0",
"resolved": "http://173.15.15.82:8081/repository/npm-all/cross-port-killer/-/cross-port-killer-1.4.0.tgz", "resolved": "https://registry.npmjs.org/cross-port-killer/-/cross-port-killer-1.4.0.tgz",
"integrity": "sha512-ujqfftKsSeorFMVI6JP25xMBixHEaDWVK+NarRZAGnJjR5AhebRQU+g+k/Lj8OHwM6f+wrrs8u5kkCdI7RLtxQ==" "integrity": "sha512-ujqfftKsSeorFMVI6JP25xMBixHEaDWVK+NarRZAGnJjR5AhebRQU+g+k/Lj8OHwM6f+wrrs8u5kkCdI7RLtxQ=="
}, },
"cross-spawn": { "cross-spawn": {

View File

@ -80,7 +80,7 @@ class Index extends Component {
} }
}).then(result=>{ }).then(result=>{
if(result && result.data){ if(result && result.data){
this.setState({authorList: result.data.users}) this.setState({authorList: result.data.users.slice(0,10)})
} }
}).catch(error=>{}) }).catch(error=>{})
} }
@ -445,7 +445,7 @@ class Index extends Component {
<div style={{width: '320px'}} className='ml20'> <div style={{width: '320px'}} className='ml20'>
{/* 帮助手册 */} {/* 帮助手册 */}
{window.location.href.indexOf('osredm.jk') < 0 &&<div className='helpText font-28'> {window.location.href.indexOf('osredm.jk') < 0 &&<div className='helpText font-28'>
<a href="https://help.osredm.com/" target='_blank'> <a href="https://help.osredm.com/#/git" target='_blank'>
<img src={explore10} alt="" className="helpImg1"/> <img src={explore10} alt="" className="helpImg1"/>
</a> </a>
</div>} </div>}
@ -490,7 +490,7 @@ class Index extends Component {
<div className='hotAuthor1'>{index<3 ? <img src={index === 0 ? explore6 : index === 1 ? explore7 : explore8} alt='' width={23}/> : index+1}</div> <div className='hotAuthor1'>{index<3 ? <img src={index === 0 ? explore6 : index === 1 ? explore7 : explore8} alt='' width={23}/> : index+1}</div>
<Link target="_blank" to={`/${i.login}`} className='hotAuthor2 task-hide'> <Link target="_blank" to={`/${i.login}`} className='hotAuthor2 task-hide'>
<img src={getImageUrl(`/${i.avatar_url}`)} alt="" width={24} className='mr5'/> <img src={getImageUrl(`/${i.avatar_url}`)} alt="" width={24} className='mr5'/>
{i.name} <span style={{lineHeight: '3'}}>{i.name}</span>
</Link> </Link>
<div className='hotAuthor3 ml20'>{i.score}</div> <div className='hotAuthor3 ml20'>{i.score}</div>
</div> </div>

View File

@ -110,8 +110,6 @@
} }
.hotAuthor2{ .hotAuthor2{
flex: 1; flex: 1;
display: flex;
align-items: center;
} }
.hotAuthor3{ .hotAuthor3{
width: 75px; width: 75px;