diff options
| author | nsfisis <nsfisis@gmail.com> | 2024-08-18 14:09:11 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2024-08-18 14:09:11 +0900 |
| commit | 0ad3546aa69d2269e5d739e9b62bc956e95e7f6e (patch) | |
| tree | 2343293d1402f7761f493231091c8239c6c40cca | |
| parent | c11fcbae922a77b22dc51fc5d988a5646ed78935 (diff) | |
| download | iosdc-japan-2025-albatross-0ad3546aa69d2269e5d739e9b62bc956e95e7f6e.tar.gz iosdc-japan-2025-albatross-0ad3546aa69d2269e5d739e9b62bc956e95e7f6e.tar.zst iosdc-japan-2025-albatross-0ad3546aa69d2269e5d739e9b62bc956e95e7f6e.zip | |
feat(frontend): wrap code block
| -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> ); |
