Skip to content

Commit

Permalink
feat(frontend): wrap code block
Browse files Browse the repository at this point in the history
  • Loading branch information
nsfisis committed Aug 18, 2024
1 parent c11fcba commit 0ad3546
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/app/components/Gaming/CodeBlock.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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>
);
Expand Down

0 comments on commit 0ad3546

Please sign in to comment.