diff --git a/src/App.css b/src/App.css index 67560ed1d..02f6395eb 100644 --- a/src/App.css +++ b/src/App.css @@ -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 { diff --git a/src/home/TopEdition.jsx b/src/home/TopEdition.jsx index 1dfb2fb88..37c48efaf 100644 --- a/src/home/TopEdition.jsx +++ b/src/home/TopEdition.jsx @@ -48,7 +48,7 @@ function TopEdition({register,current_user}) { return(
{/* style={{backgroundImage:`url(${getImageUrl(i.image)})`}} */} -
{if(k === 3){window.location.href="https://forum.gitlink.org.cn/forums/7653/detail"}}} style={{cursor: k === 3 ? 'pointer' : ''}}> +
{if(i.url){window.location.href=i.url}}} style={{cursor: i.url ? 'pointer' : ''}}> { k +1 === bannerList.length && (!(current_user && current_user.login)) ?