Skip to content

Commit 2c1318f

Browse files
committed
better copy button fix
1 parent 2a606f1 commit 2c1318f

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

src/components/CodeExplorer.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,6 @@ export function CodeExplorer({
118118
/>
119119
<div className="flex-1 overflow-auto relative">
120120
<CodeBlock
121-
showTypeCopyButton={true}
122121
isEmbedded
123122
className={twMerge(
124123
'h-full border-0',

src/components/Markdown.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ mermaid.initialize({ startOnLoad: true, securityLevel: 'loose' })
109109

110110
export function CodeBlock({
111111
isEmbedded,
112-
showTypeCopyButton,
112+
showTypeCopyButton = true,
113113
...props
114114
}: React.HTMLProps<HTMLPreElement> & {
115115
isEmbedded?: boolean

0 commit comments

Comments
 (0)