From 770ba62630645481835ee695734fa7d6608fbff9 Mon Sep 17 00:00:00 2001 From: moonrailgun Date: Wed, 11 Aug 2021 10:18:01 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E8=B0=83=E6=95=B4=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/components/GroupSection.tsx | 4 ++-- web/src/routes/Main/Content/Group/Sidebar.tsx | 13 ++++++----- web/src/routes/Main/Navbar/GroupNav.tsx | 22 +++++++++---------- 3 files changed, 19 insertions(+), 20 deletions(-) diff --git a/web/src/components/GroupSection.tsx b/web/src/components/GroupSection.tsx index 50fc8104..8bd031e8 100644 --- a/web/src/components/GroupSection.tsx +++ b/web/src/components/GroupSection.tsx @@ -10,7 +10,7 @@ export const GroupSection: React.FC<{ return (
{props.header}
{ {groupPanels .filter((panel) => panel.parentId === group.id) .map((panel) => ( - #
} - to={`/main/group/${groupId}/${panel.id}`} - /> +
+ #
} + to={`/main/group/${groupId}/${panel.id}`} + /> + ))} ))} diff --git a/web/src/routes/Main/Navbar/GroupNav.tsx b/web/src/routes/Main/Navbar/GroupNav.tsx index 9848aeeb..ca3cad08 100644 --- a/web/src/routes/Main/Navbar/GroupNav.tsx +++ b/web/src/routes/Main/Navbar/GroupNav.tsx @@ -25,18 +25,16 @@ export const GroupNav: React.FC = React.memo(() => {
{Array.isArray(groups) && groups.map((group) => ( - - - +
+ + + +
))} {/* 创建群组 */}