From 012df83e04530e23817b70cd15bc0680226fa661 Mon Sep 17 00:00:00 2001 From: Haneul-Kim <4188989@naver.com> Date: Thu, 4 Jan 2024 15:42:28 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20Header=20title=20=EC=98=A4=EB=A5=98=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/Header/Header.tsx | 5 +++-- pages/dashboard/[boardId]/index.tsx | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/components/Header/Header.tsx b/components/Header/Header.tsx index 82a9752..7d858c1 100644 --- a/components/Header/Header.tsx +++ b/components/Header/Header.tsx @@ -52,12 +52,13 @@ const Header = ({ dashboardList }: HeaderProps) => { return (
- {!!title || ( + {title ? ( +

{title.length > 20 ? title.slice(0, 20) + "..." : title}

+ ) : (

{WELCOME_MESSAGE[Math.floor(Math.random() * WELCOME_MESSAGE.length)]}

)} - {!!title &&

{title.length > 20 ? title.slice(0, 20) + "..." : title}

}
{isOwner && ( <> diff --git a/pages/dashboard/[boardId]/index.tsx b/pages/dashboard/[boardId]/index.tsx index 6d92508..909ea7b 100644 --- a/pages/dashboard/[boardId]/index.tsx +++ b/pages/dashboard/[boardId]/index.tsx @@ -24,7 +24,7 @@ export const getServerSideProps = async (context: GetServerSidePropsContext) => const { data: { dashboards }, - } = await sender.get({ path: "dashboards", method: "pagination", size: 13, accessToken: accessToken }); + } = await sender.get({ path: "dashboards", method: "pagination", size: 999, accessToken: accessToken }); const boardId = context.query["boardId"];