From 0ad3546aa69d2269e5d739e9b62bc956e95e7f6e Mon Sep 17 00:00:00 2001
From: nsfisis <nsfisis@gmail.com>
Date: Sun, 18 Aug 2024 14:09:11 +0900
Subject: feat(frontend): wrap code block

---
 frontend/app/components/Gaming/CodeBlock.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'frontend/app/components/Gaming/CodeBlock.tsx')

diff --git a/frontend/app/components/Gaming/CodeBlock.tsx b/frontend/app/components/Gaming/CodeBlock.tsx
index b193774..bca8727 100644
--- a/frontend/app/components/Gaming/CodeBlock.tsx
+++ b/frontend/app/components/Gaming/CodeBlock.tsx
@@ -13,7 +13,7 @@ export default function CodeBlock({ code, language }: Props) {
 	const highlighted = highlight(code, languages[language]!, language);
 
 	return (
-		<pre className="bg-white resize-none h-full w-full rounded-lg border border-gray-300 p-2">
+		<pre className="h-full w-full p-2 bg-white rounded-lg border border-gray-300 whitespace-pre-wrap break-words resize-none">
 			<code dangerouslySetInnerHTML={{ __html: highlighted }} />
 		</pre>
 	);
-- 
cgit v1.2.3-70-g09d2

