Merge pull request 'issue' (#480) from durian/forgeplus-react:gitlink_server into gitlink_server

This commit is contained in:
tongChong 2022-11-28 16:08:37 +08:00
commit 2873c4425d
7 changed files with 11 additions and 10 deletions

View File

@ -560,7 +560,6 @@
// 此处影响公式加载
editormd.loadScript(loadPath + "marked.min", function () {
editormd.$marked = marked;
if (settings.previewCodeHighlight) {

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

@ -66,7 +66,7 @@ function CoderDepotReadme({ operate , history , readme , ChangeFile }){
{
content &&
<div className="commonBox-info">
<RenderHtml className="break_word_comments imageLayerParent" value={content} url={history.location}/>
<RenderHtml className="break_word_comments imageLayerParent readmeFile" value={content} url={history.location}/>
</div>
}
</div>

View File

@ -522,6 +522,6 @@
}
}
.readmeFile p{
white-space: normal;
}

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>

View File

@ -289,8 +289,6 @@ export default ({ mdID, onChange, onCMBeforeChange, onCMBlur, error = false, cla
setEditorInstance(this)
}
})
console.log('editor_instance');
console.log(editor_instance);
}, [containerId, editorInstance, startInit])