From 516e81953173ced9209ebea955b86da589e5f2f6 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Wed, 17 Sep 2025 18:59:32 +0900 Subject: feat(frontend): do not show copy button if code is empty --- frontend/app/components/Gaming/CodeBlock.tsx | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) (limited to 'frontend/app') diff --git a/frontend/app/components/Gaming/CodeBlock.tsx b/frontend/app/components/Gaming/CodeBlock.tsx index 360f352..f1516ed 100644 --- a/frontend/app/components/Gaming/CodeBlock.tsx +++ b/frontend/app/components/Gaming/CodeBlock.tsx @@ -25,16 +25,18 @@ export default function CodeBlock({ code, language }: Props) { return (
- + {code !== "" && ( + + )}
 				{nodes === null ? {code} : nodes}
 			
-- cgit v1.2.3-70-g09d2