From 56ce9cfbec387d660728e5785a5f505fe718088d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B0=A2=E6=80=9D?= <2897217417@qq.com> Date: Thu, 17 Nov 2022 15:52:27 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5banner=E8=B7=B3=E8=BD=AC+md?= =?UTF-8?q?=E6=8D=A2=E8=A1=8C=E6=A0=B7=E5=BC=8F=E6=81=A2=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.css | 3 +-- src/home/TopEdition.jsx | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) 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)) ?