diff --git a/app/components/Code.tsx b/app/components/Code.tsx index 25be774..b57bd1d 100644 --- a/app/components/Code.tsx +++ b/app/components/Code.tsx @@ -14,13 +14,15 @@ export default function Code({ isCopyable, children, className }: CodeProps) { className={cn( 'bg-headplane-100 dark:bg-headplane-800 px-1 py-0.5 font-mono', 'rounded-lg focus-within:outline-none focus-within:ring-2', + isCopyable && 'relative pr-7', className, )} > - {isCopyable ? ( + {children} + {isCopyable && ( - ) : ( - children )} );