We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3684b8e commit 0ce59bdCopy full SHA for 0ce59bd
src/gurubase-frontend/src/components/PostContent/CodeBlock.js
@@ -38,13 +38,9 @@ const CodeBlock = ({ language, value }) => {
38
}
39
};
40
41
- if (!isCopySupported) {
42
- return null;
43
- }
44
-
45
return (
46
<div className="relative not-prose">
47
- {!isStreaming && (
+ {isCopySupported && !isStreaming && (
48
<button
49
aria-label="icon with copy"
50
className="absolute top-2 right-2 bg-transparent p-1 text-sm rounded focus:outline-none focus:ring-1 focus:ring-gray-500 focus:ring-opacity-0"
0 commit comments