diff options
| -rw-r--r-- | frontend/app/components/Gaming/CodeBlock.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
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> ); |
