diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-03-01 11:24:32 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-03-01 11:35:26 +0900 |
| commit | 5b72323964c3fa7a10377b363714f681b5ffa709 (patch) | |
| tree | c901fd239d27d8b750663026b7f5877e997df6c1 /frontend/app/components | |
| parent | b15f06ece6a9dac01a06688be39e437cfa8ed257 (diff) | |
| download | phperkaigi-2026-albatross-5b72323964c3fa7a10377b363714f681b5ffa709.tar.gz phperkaigi-2026-albatross-5b72323964c3fa7a10377b363714f681b5ffa709.tar.zst phperkaigi-2026-albatross-5b72323964c3fa7a10377b363714f681b5ffa709.zip | |
fix(frontend): add right padding to code block to prevent copy button overlap
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Diffstat (limited to 'frontend/app/components')
| -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 2b330dd..49ef01e 100644 --- a/frontend/app/components/Gaming/CodeBlock.tsx +++ b/frontend/app/components/Gaming/CodeBlock.tsx @@ -37,7 +37,7 @@ export default function CodeBlock({ code, language }: Props) { )} </button> )} - <pre className="h-full w-full p-2 bg-gray-50 rounded-lg border border-gray-300 whitespace-pre-wrap break-words"> + <pre className="h-full w-full p-2 pr-12 bg-white rounded-lg border border-gray-300 whitespace-pre-wrap break-words"> {nodes === null ? <code>{code}</code> : nodes} </pre> </div> |
