Skip to content

Commit 0ce59bd

Browse files
committed
fix code block apperance on http urls
1 parent 3684b8e commit 0ce59bd

File tree

1 file changed

+1
-5
lines changed
  • src/gurubase-frontend/src/components/PostContent

1 file changed

+1
-5
lines changed

src/gurubase-frontend/src/components/PostContent/CodeBlock.js

+1-5
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,9 @@ const CodeBlock = ({ language, value }) => {
3838
}
3939
};
4040

41-
if (!isCopySupported) {
42-
return null;
43-
}
44-
4541
return (
4642
<div className="relative not-prose">
47-
{!isStreaming && (
43+
{isCopySupported && !isStreaming && (
4844
<button
4945
aria-label="icon with copy"
5046
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

Comments
 (0)