首页banner跳转+md换行样式恢复

This commit is contained in:
谢思 2022-11-17 15:52:27 +08:00
parent 1608f30ba6
commit 56ce9cfbec
2 changed files with 2 additions and 3 deletions

View File

@ -78,8 +78,7 @@ body {
.markdown-body p {
margin:10px 0px!important;
font-size: 16px !important;
/* 用户提出多个徽章换行显示p标签会换行显示 */
/* white-space: pre-wrap; */
white-space: pre-wrap;
}
.markdown-body>p {

View File

@ -48,7 +48,7 @@ function TopEdition({register,current_user}) {
return(
<div className={`regform`}>
{/* style={{backgroundImage:`url(${getImageUrl(i.image)})`}} */}
<div onClick={()=>{if(k === 3){window.location.href="https://forum.gitlink.org.cn/forums/7653/detail"}}} style={{cursor: k === 3 ? 'pointer' : ''}}>
<div onClick={()=>{if(i.url){window.location.href=i.url}}} style={{cursor: i.url ? 'pointer' : ''}}>
<img src={getImageUrl(i.image)} alt="" height="100%"/>
{
k +1 === bannerList.length && (!(current_user && current_user.login)) ?