fix(pr#67): prevents clan tag from wrapping

This commit is contained in:
cnrad
2024-11-14 01:44:19 -05:00
parent e8ded2615b
commit 802a7299cb
3 changed files with 4 additions and 7 deletions

View File

@@ -24,11 +24,8 @@ export default function RootLayout({
children: React.ReactNode; children: React.ReactNode;
}>) { }>) {
return ( return (
<html lang="en" suppressHydrationWarning> <html lang="en">
{/* Supress Hydration Warning that caused by some extensions such as Colorzilla, do not remove this. */} <body className={`${poppins.className} antialiased`}>{children}</body>
<body className={`${poppins.className} antialiased`} suppressHydrationWarning>
{children}
</body>
</html> </html>
); );
} }

View File

@@ -12,7 +12,7 @@ import { Popover, PopoverContent, PopoverTrigger } from "@/components/popover";
import { cn, filterLetters } from "@/lib/utils"; import { cn, filterLetters } from "@/lib/utils";
export default function Home() { 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 [userId, setUserId] = useState("");
const [userError, setUserError] = useState<string | JSX.Element>(); const [userError, setUserError] = useState<string | JSX.Element>();

View File

@@ -336,7 +336,7 @@ async function renderCard(body: LanyardTypes.Root, params: Parameters): Promise<
}} }}
> >
<img src={`data:image/png;base64,${clanBadge!}`} alt="Clan Badge" /> <img src={`data:image/png;base64,${clanBadge!}`} alt="Clan Badge" />
<p style={{ marginBottom: "1.1rem" }}>{data.discord_user.clan!.tag}</p> <p style={{ marginBottom: "1.1rem", whiteSpace: "nowrap" }}>{data.discord_user.clan!.tag}</p>
</span> </span>
)} )}