mirror of
https://github.com/NohamR/lanyard-profile-readme.git
synced 2026-05-26 13:41:32 +00:00
fix(pr#67): prevents clan tag from wrapping
This commit is contained in:
@@ -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>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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>();
|
||||||
|
|||||||
@@ -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>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user