From 802a7299cb3aa22713736d71c6504275983c31ba Mon Sep 17 00:00:00 2001 From: cnrad Date: Thu, 14 Nov 2024 01:44:19 -0500 Subject: [PATCH] fix(pr#67): prevents clan tag from wrapping --- src/app/layout.tsx | 7 ++----- src/app/page.tsx | 2 +- src/utils/renderCard.tsx | 2 +- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/src/app/layout.tsx b/src/app/layout.tsx index e917d7d..457eda5 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -24,11 +24,8 @@ export default function RootLayout({ children: React.ReactNode; }>) { return ( - - {/* Supress Hydration Warning that caused by some extensions such as Colorzilla, do not remove this. */} - - {children} - + + {children} ); } diff --git a/src/app/page.tsx b/src/app/page.tsx index 7768e28..0a9580c 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -12,7 +12,7 @@ import { Popover, PopoverContent, PopoverTrigger } from "@/components/popover"; import { cn, filterLetters } from "@/lib/utils"; export default function Home() { - const ORIGIN_URL = process.env.NODE_ENV === "development" ? "http://localhost:3000" : "https://lanyard.cnrad.dev"; + const ORIGIN_URL = process.env.NODE_ENV === "development" ? "http://localhost:3001" : "https://lanyard.cnrad.dev"; const [userId, setUserId] = useState(""); const [userError, setUserError] = useState(); diff --git a/src/utils/renderCard.tsx b/src/utils/renderCard.tsx index 1f63392..709ef13 100644 --- a/src/utils/renderCard.tsx +++ b/src/utils/renderCard.tsx @@ -336,7 +336,7 @@ async function renderCard(body: LanyardTypes.Root, params: Parameters): Promise< }} > Clan Badge -

{data.discord_user.clan!.tag}

+

{data.discord_user.clan!.tag}

)}